diff options
author | James Falcon <james.falcon@canonical.com> | 2023-01-17 09:42:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 08:42:12 -0700 |
commit | 709eeb1a8dbea712f811c925b7d433521a760026 (patch) | |
tree | b61719d0855c8cadf731a3974838ead28c6758cb | |
parent | 07f154be45fee13c542251807a016d9592c59f9e (diff) | |
download | cloud-init-git-709eeb1a8dbea712f811c925b7d433521a760026.tar.gz |
Ensure ssh state accurately obtained (#1966)
Missed a .strip() in the implementation
-rw-r--r-- | cloudinit/config/cc_set_passwords.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py index b04530e3..8524a080 100644 --- a/cloudinit/config/cc_set_passwords.py +++ b/cloudinit/config/cc_set_passwords.py @@ -153,7 +153,7 @@ def handle_ssh_pwauth(pw_auth, distro: Distro): "--value", service, ] - ).stdout + ).stdout.strip() if state.lower() in ["active", "activating", "reloading"]: distro.manage_service("restart", service) LOG.debug("Restarted the SSH daemon.") |