changed config key name

This commit is contained in:
keyz182 2011-05-28 01:44:00 +01:00
parent c965a558e6
commit 720b7cfedc
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class DataSourceEc2(DataSource.DataSource):
addresslist = ["http://169.254.169.254:80", "http://instance-data:8773"] addresslist = ["http://169.254.169.254:80", "http://instance-data:8773"]
try: try:
addresslist = mcfg.get("metadata_url", addresslist) addresslist = mcfg.get("metadata_urls", addresslist)
except Exception as e: except Exception as e:
util.logexc(log) util.logexc(log)
log.warning("Failed to get metadata URLs, using defaults") log.warning("Failed to get metadata URLs, using defaults")

View File

@ -10,7 +10,7 @@ datasource:
retries : 30 retries : 30
#metadata_url: a list of URLs to check for metadata services #metadata_url: a list of URLs to check for metadata services
metadata_url: metadata_urls:
- http://169.254.169.254:80 - http://169.254.169.254:80
- http://instance-data:8773 - http://instance-data:8773