Merge pull request #2659 from mscherer/remove_useless_unsafe_shell

Remove a unneeded use of use_unsafe_shell
reviewable/pr18780/r1
Brian Coca 9 years ago
commit d4916bd476

@ -260,8 +260,8 @@ class SystemdStrategy(GenericStrategy):
(rc, out, err)) (rc, out, err))
def get_permanent_hostname(self): def get_permanent_hostname(self):
cmd = 'hostnamectl --static status' cmd = ['hostnamectl', '--static', 'status']
rc, out, err = self.module.run_command(cmd, use_unsafe_shell=True) rc, out, err = self.module.run_command(cmd)
if rc != 0: if rc != 0:
self.module.fail_json(msg="Command failed rc=%d, out=%s, err=%s" % self.module.fail_json(msg="Command failed rc=%d, out=%s, err=%s" %
(rc, out, err)) (rc, out, err))

Loading…
Cancel
Save