diff options
-rw-r--r-- | cloudinit/DataSourceEc2.py | 2 | ||||
-rw-r--r-- | doc/examples/cloud-config-datasources.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/DataSourceEc2.py b/cloudinit/DataSourceEc2.py index bb0b015a..786ab78f 100644 --- a/cloudinit/DataSourceEc2.py +++ b/cloudinit/DataSourceEc2.py @@ -114,7 +114,7 @@ class DataSourceEc2(DataSource.DataSource): addresslist = ["http://169.254.169.254:80", "http://instance-data:8773"] try: - addresslist = mcfg.get("metadata_url", addresslist) + addresslist = mcfg.get("metadata_urls", addresslist) except Exception as e: util.logexc(log) log.warning("Failed to get metadata URLs, using defaults") diff --git a/doc/examples/cloud-config-datasources.txt b/doc/examples/cloud-config-datasources.txt index a625e76d..e04f8976 100644 --- a/doc/examples/cloud-config-datasources.txt +++ b/doc/examples/cloud-config-datasources.txt @@ -10,7 +10,7 @@ datasource: retries : 30 #metadata_url: a list of URLs to check for metadata services - metadata_url: + metadata_urls: - http://169.254.169.254:80 - http://instance-data:8773 |