Commit 82ddec5e by James Cammarata

Merge pull request #8307 from robinro/fix-extra-newline

Fix extra newline at end of hostname for Fedora
parents d51e10a3 e91c3183
......@@ -259,7 +259,7 @@ class FedoraStrategy(GenericStrategy):
if rc != 0:
self.module.fail_json(msg="Command failed rc=%d, out=%s, err=%s" %
(rc, out, err))
return out
return out.strip()
def set_permanent_hostname(self, name):
cmd = ['hostnamectl', '--pretty', 'set-hostname', name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment