@@ -143,11 +143,11 @@ def get_repo_url(instance):
143
143
dockerfile .write (df_contents )
144
144
145
145
if instance .get ('pg_version' ) is not None :
146
- build_args += ['--build-arg' , ( 'PG_VERSION=' +
147
- instance .get (' pg_version' ) )]
146
+ build_args += ['--build-arg' ,
147
+ ( f'PG_VERSION= { instance .get (" pg_version" ) } ' )]
148
148
if instance .get ('pgpro_edition' ) is not None :
149
- build_args += ['--build-arg' , ( 'PGPRO_EDN=' +
150
- instance .get (' pgpro_edition' ) )]
149
+ build_args += ['--build-arg' ,
150
+ ( f'PGPRO_EDN= { instance .get (" pgpro_edition" ) } ' )]
151
151
pg_params = ''
152
152
for param in instance .findall ('config/pg_param' ):
153
153
pg_params += f"{ param .get ('name' )} = '{ param .get ('value' )} '\\ n"
@@ -157,15 +157,15 @@ def get_repo_url(instance):
157
157
158
158
repo_url = get_repo_url (instance )
159
159
if repo_url is not None :
160
- build_args += ['--build-arg' , ('REPOSITORY=' + repo_url )]
160
+ build_args += ['--build-arg' , (f 'REPOSITORY={ repo_url } ' )]
161
161
162
162
extra = instance .find ('extra' )
163
163
if extra is not None :
164
164
if extra .find ('source' ) is not None and \
165
165
extra .find ('source' ).get ('type' ) == 'git' :
166
166
extra_git_url = extra .find ('source' ).get ('url' )
167
- build_args += ['--build-arg' , ( 'EXTRA_SRC_GIT=' +
168
- extra_git_url )]
167
+ build_args += ['--build-arg' ,
168
+ ( f'EXTRA_SRC_GIT= { extra_git_url } ' )]
169
169
pg_modules = ''
170
170
for pgm in extra .findall ('pg_module' ):
171
171
pg_modules += (',' if pg_modules else '' ) + pgm .get ('name' )
@@ -182,8 +182,8 @@ def get_repo_url(instance):
182
182
phase2_action = instance .find ('os' ).get ('phase2_action' )
183
183
if instance .find ('os' ).get ('extra_packages' ) is not None :
184
184
extra_os_packages = instance .find ('os' ).get ('extra_packages' )
185
- build_args += ['--build-arg' , ('PHASE1_ACTION=' + phase1_action )]
186
- build_args += ['--build-arg' , ('PHASE2_ACTION=' + phase2_action )]
185
+ build_args += ['--build-arg' , (f 'PHASE1_ACTION={ phase1_action } ' )]
186
+ build_args += ['--build-arg' , (f 'PHASE2_ACTION={ phase2_action } ' )]
187
187
build_args += ['--build-arg' ,
188
188
(f'EXTRA_OS_PACKAGES="{ extra_os_packages } "' )]
189
189
0 commit comments