service_facts on OpenBSD: Don't crash on '=' in rcctl flags. (#83458)

Splitting on all '=' characters produced too many values.
pull/83285/merge
shiftyphil 4 months ago committed by GitHub
parent dad6f07731
commit dc31b6cf55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- service_facts - don't crash if OpenBSD rcctl variable contains '=' character (https://github.com/ansible/ansible/issues/83457)

@ -377,7 +377,7 @@ class OpenBSDScanService(BaseService):
if variable == '' or '=' not in variable: if variable == '' or '=' not in variable:
continue continue
else: else:
k, v = variable.replace(undy, '', 1).split('=') k, v = variable.replace(undy, '', 1).split('=', 1)
info[k] = v info[k] = v
return info return info

Loading…
Cancel
Save