mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
Set raw=True
when reading passwords from ConfigParser files. (#35582)
* Set `raw=True` when reading passwords from ConfigParser files. The assumption is that no one is actually doing interpolation on the password value, even if they may for other configuration values, and passwords are far more likely to contain '%'. * Add vmware_inventory as well.
This commit is contained in:
parent
d5cfc54ef4
commit
15b6ec66bb
4 changed files with 4 additions and 4 deletions
|
@ -138,7 +138,7 @@ class CloudFormsInventory(object):
|
|||
warnings.warn("No username specified, you need to specify a CloudForms username.")
|
||||
|
||||
if config.has_option('cloudforms', 'password'):
|
||||
self.cloudforms_pw = config.get('cloudforms', 'password')
|
||||
self.cloudforms_pw = config.get('cloudforms', 'password', raw=True)
|
||||
else:
|
||||
self.cloudforms_pw = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue