Correctly read use_private_network as boolean
This fixes the use of public IPs in the discovered hosts by ensuring that the use_private_network check doesn't always evaluate to False if the associated .ini file specifies this option.
This commit is contained in:
parent
a1032bc44b
commit
39e86ae2bc
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ or environment variables (DO_API_TOKEN)\n''')
|
|||
|
||||
# Private IP Address
|
||||
if config.has_option('digital_ocean', 'use_private_network'):
|
||||
self.use_private_network = config.get('digital_ocean', 'use_private_network')
|
||||
self.use_private_network = config.getboolean('digital_ocean', 'use_private_network')
|
||||
|
||||
# Group variables
|
||||
if config.has_option('digital_ocean', 'group_variables'):
|
||||
|
|
Loading…
Reference in a new issue