Fix bad join with new table name

This commit is contained in:
Joshua Boniface 2020-01-04 15:17:27 -05:00
parent bf89050e8b
commit 7311fa561b
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class MetadataAPIInstance(object):
# Obtain a list of templates # Obtain a list of templates
def get_profile_userdata(self, vm_profile): 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 JOIN userdata ON profile.userdata = userdata.id
WHERE profile.name = %s; WHERE profile.name = %s;
""" """