diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-09-09 15:57:12 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-09-09 15:57:12 -0400 |
commit | 473f51c80b106c56cacbad8e27f4e17fb1d73efd (patch) | |
tree | 3a0073478649208c5fb38aaf3ea09038a2786243 /cloudinit | |
parent | 06b6b316f591f01ac59304620afa200d0d62cac9 (diff) | |
download | vyos-cloud-init-473f51c80b106c56cacbad8e27f4e17fb1d73efd.tar.gz vyos-cloud-init-473f51c80b106c56cacbad8e27f4e17fb1d73efd.zip |
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".
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/DataSourceEc2.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |