scripts/zulip-puppet-apply: Avoid shelling out for touch.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2018-07-18 17:50:16 -04:00 committed by Tim Abbott
parent 09c64f260b
commit fdc3b62d5f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if not os.path.exists("/etc/puppet/hiera.yaml"):
codename = parse_lsb_release()['DISTRIB_CODENAME']
if codename in ["trusty", "stretch", "xenial"]:
# Suppress warnings in old puppet about hiera.yaml not existing.
subprocess.check_call(["touch", "/etc/puppet/hiera.yaml"])
open("/etc/puppet/hiera.yaml", "a").close()
puppet_config = """
Exec { path => "/usr/sbin:/usr/bin:/sbin:/bin" }