fix vbox inventory to correclty unset pwfile (#49774)

pull/49803/head
Brian Coca 6 years ago committed by GitHub
parent 02432565cd
commit daaca1abd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- preserve Noneness of pwdfile when it is None in virtualbox inventory plugin

@ -237,7 +237,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
update_cache = True update_cache = True
if not source_data: if not source_data:
b_pwfile = to_bytes(self.get_option('settings_password_file'), errors='surrogate_or_strict') b_pwfile = to_bytes(self.get_option('settings_password_file'), errors='surrogate_or_strict', nonstring='passthru')
running = self.get_option('running_only') running = self.get_option('running_only')
# start getting data # start getting data

Loading…
Cancel
Save