Commit e046e392 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

request: Provide instance status as returned parameter

parent b6cf9d0b
...@@ -153,6 +153,7 @@ class Recipe(object): ...@@ -153,6 +153,7 @@ class Recipe(object):
# XXX: deprecated, to be removed # XXX: deprecated, to be removed
options['instance_guid'] = self.instance.getInstanceGuid() options['instance_guid'] = self.instance.getInstanceGuid()
options['instance-state'] = self.instance.getState() options['instance-state'] = self.instance.getState()
options['instance-status'] = self.instance.getStatus()
except (slapmodule.ResourceNotReady, AttributeError): except (slapmodule.ResourceNotReady, AttributeError):
# Backward compatibility. Old SlapOS master and core don't know this. # Backward compatibility. Old SlapOS master and core don't know this.
self.logger.warning("Impossible to fetch instance GUID nor state.") self.logger.warning("Impossible to fetch instance GUID nor state.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment