File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2175,6 +2175,14 @@ def env(self) -> typing.Dict[str, str]:
2175
2175
2176
2176
jail_env ["IOC_JAIL_PATH" ] = self .root_dataset .mountpoint
2177
2177
jail_env ["IOC_JID" ] = str (self .jid )
2178
+ jail_env ["PATH" ] = ":" .join ((
2179
+ "/sbin" ,
2180
+ "/bin" ,
2181
+ "/usr/sbin" ,
2182
+ "/usr/bin" ,
2183
+ "/usr/local/sbin" ,
2184
+ "/usr/local/bin" ,
2185
+ ))
2178
2186
2179
2187
return jail_env
2180
2188
Original file line number Diff line number Diff line change @@ -202,10 +202,6 @@ def provision(
202
202
)
203
203
204
204
try :
205
- env = {
206
- 'PATH' :
207
- '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'
208
- }
209
205
puppet_dir = "/usr/local/etc/puppet"
210
206
if self .source .remote is True :
211
207
@@ -232,7 +228,7 @@ def provision(
232
228
"deploy" ,
233
229
"environment" ,
234
230
"-pv"
235
- ], env = env )
231
+ ])
236
232
except Exception as e :
237
233
yield r10kDeployEvent .fail (e )
238
234
raise e
@@ -251,7 +247,7 @@ def provision(
251
247
"--logdest" ,
252
248
"syslog" ,
253
249
f"{ puppet_env_dir } /production/manifests/site.pp"
254
- ], env = env )
250
+ ])
255
251
yield puppetApplyEvent .end ()
256
252
except Exception as e :
257
253
yield puppetApplyEvent .fail (e )
You can’t perform that action at this time.
0 commit comments