Fixed wrong method name and variable name

This commit is contained in:
Scott Hussey 2017-06-22 16:29:24 -05:00
parent 3b5f14bb32
commit 0a42a5790c

View File

@ -28,12 +28,12 @@ class BootdataResource(StatefulResource):
resp.body = BootdataResource.systemd_definition
resp.content_type = 'text/plain'
return
elif data_key == 'prominit':
elif data_key == 'prom_init':
resp.boy = BootdataResource.prominit
resp.content_type = 'text/plain'
return
else:
bootdata = self.state_manager.get_boot_data(hostname)
bootdata = self.state_manager.get_bootdata_key(hostname)
if bootdata is None:
resp.status = falcon.HTTP_404