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.
pull/18156/head
Daniel Yates 8 years ago committed by Michael Scherer
parent a1032bc44b
commit 39e86ae2bc

@ -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…
Cancel
Save