Skip to content

Commit

Permalink
Use publicIp when configuring hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Feb 23, 2021
1 parent 130704e commit 17af1e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -468,7 +468,7 @@ def _provision_host(self, name, task, app_config, provider_config):
results['private_ip'] = inst.private_ips[0] if inst.private_ips else results['publicIP']
# Configure hostname (if set)
results['hostname'] = self._configure_hostname(
provider, results['private_ip'], cloudlaunch_config.get('hostnameConfig'))
provider, results['publicIP'], cloudlaunch_config.get('hostnameConfig'))
task.update_state(
state='PROGRESSING',
meta={"action": "Instance created successfully. " +
Expand Down

0 comments on commit 17af1e2

Please sign in to comment.