summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-20 23:59:24 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-20 23:59:24 -0700
commitf7e638f6f58188cd4be1921cb045608f3c00d9c4 (patch)
treeaf0802d312139d8b20681ecbe1f3c25383064371 /tools
parentd8f49316e20cd11885f2ee5cfb9ad0ac7cf336c6 (diff)
downloadvyos-cloud-init-f7e638f6f58188cd4be1921cb045608f3c00d9c4.tar.gz
vyos-cloud-init-f7e638f6f58188cd4be1921cb045608f3c00d9c4.zip
Return a empty json map as default instead of an empty string for unknown fields
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mock-meta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mock-meta.py b/tools/mock-meta.py
index 019a24f2..d4677af6 100755
--- a/tools/mock-meta.py
+++ b/tools/mock-meta.py
@@ -181,7 +181,7 @@ class MetaDataHandler(object):
else:
return "%s" % (PLACEMENT_CAPABILITIES.get(pentry, ''))
else:
- return ''
+ return '{}'
class UserDataHandler(object):