Update userdata table name

This commit is contained in:
Joshua Boniface 2020-01-04 15:10:37 -05:00
parent 94c60f9daa
commit bf89050e8b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class MetadataAPIInstance(object):
# Obtain a list of templates
def get_profile_userdata(self, vm_profile):
query = """SELECT userdata FROM profile
JOIN userdata_template ON profile.userdata_template = userdata_template.id
JOIN userdata ON profile.userdata = userdata.id
WHERE profile.name = %s;
"""
args = (vm_profile,)