From 473f51c80b106c56cacbad8e27f4e17fb1d73efd Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 9 Sep 2010 15:57:12 -0400 Subject: device_name_to_device: return the md's device string even if no device The logic behind returning a device even if it is not present is that it *could* be present later, or after a stop and restart. Additionally this gives the caller more information to differenciate itself between "device did not exist" and "device was not present in metadata service". --- cloudinit/DataSourceEc2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') diff --git a/cloudinit/DataSourceEc2.py b/cloudinit/DataSourceEc2.py index 54cbc69c..30bbb9fc 100644 --- a/cloudinit/DataSourceEc2.py +++ b/cloudinit/DataSourceEc2.py @@ -164,4 +164,4 @@ class DataSourceEc2(DataSource.DataSource): if os.path.exists(cand): cloudinit.log.debug("remapped device name %s => %s" % (found,cand)) return(cand) - return None + return ofound -- cgit v1.2.3