Skip to content

Commit

Permalink
Need to pass PATH as string, not array
Browse files Browse the repository at this point in the history
Arrgghh... Thank goodness that CI/CD picked this one up before
shipping.
  • Loading branch information
Jitsusama committed Jul 21, 2017
1 parent 83cca81 commit 66a678d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions lets_do_dns/acme_dns_auth/authenticate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ def _run_post_cmd(self):
if self._env.post_cmd:
run(self._env.post_cmd,
env={'CERTBOT_HOSTNAME': self._env.fqdn,
'PATH': ["/bin", "/sbin",
"/usr/bin", "/usr/sbin",
"/usr/local/bin", "/usr/local/sbin"]})
'PATH': ("/bin:/sbin:/usr/bin:/usr/sbin:"
"/usr/local/bin:/usr/local/sbin")})

def _create_resource(self):
self._resource.create()
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/acme_dns_auth/authenticate/test_cleanup_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,5 @@ def test_passes_postcmd_to_run(mocker, fqdn):
mock_run.assert_called_once_with(
'test-program --help',
env={'CERTBOT_HOSTNAME': fqdn,
'PATH': ["/bin", "/sbin",
"/usr/bin", "/usr/sbin",
"/usr/local/bin", "/usr/local/sbin"]})
'PATH': ("/bin:/sbin:/usr/bin:/usr/sbin:"
"/usr/local/bin:/usr/local/sbin")})

0 comments on commit 66a678d

Please sign in to comment.