diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2022-10-11 14:46:32 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2022-10-11 14:46:57 +0200 |
commit | 36701580caf57788f6900fb6d28e4274909f6a34 (patch) | |
tree | 5bada7be4f3b45e9b17d9b0dbff465a1fcbb731d /lib | |
parent | 68838a0cb2a2e5dbaca9c3c63178238cf988f4b4 (diff) |
postmulti: Fix encoding issue.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/modules/postmulti | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/postmulti b/lib/modules/postmulti index 3c0a522..e6f58e3 100644 --- a/lib/modules/postmulti +++ b/lib/modules/postmulti @@ -30,7 +30,7 @@ def postconf(k, instance=None): cmd.extend([ os.path.join(os.sep, 'usr', 'sbin', 'postconf') , '-h', k ]) - return subprocess.check_output(cmd, stderr=subprocess.STDOUT).rstrip() + return subprocess.check_output(cmd, stderr=subprocess.STDOUT).rstrip().decode("utf-8") # To destroy an existing instance: @@ -55,7 +55,7 @@ def main(): enable = postconf('multi_instance_enable') wrapper = postconf('multi_instance_wrapper') - if enable != "yes" or not wrapper: + if enable != "yes" or wrapper == "": # Initiate postmulti changed = True if module.check_mode: |