diff --git a/node-daemon/pvcd/MetadataAPIInstance.py b/node-daemon/pvcd/MetadataAPIInstance.py index 5e607b16..3047cd8d 100644 --- a/node-daemon/pvcd/MetadataAPIInstance.py +++ b/node-daemon/pvcd/MetadataAPIInstance.py @@ -139,7 +139,7 @@ class MetadataAPIInstance(object): # Obtain a list of templates def get_profile_userdata(self, vm_profile): - query = """SELECT userdata FROM profile + query = """SELECT userdata.userdata FROM profile JOIN userdata ON profile.userdata = userdata.id WHERE profile.name = %s; """