Skip to content
Snippets Groups Projects
Commit b7ac9f5d authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added code portion to handle the 'list' cli command.

parent 3c091245
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,14 @@ class StorageAMQPServer(AMQPServer):
elif requestBody["requestType"] == "STORAGE_RMV":
pass
elif requestBody["requestType"] == "STORAGE_LST":
pass
self.dbConn.connect()
result = self.dbConn.getStorageList()
self.dbConn.disconnect()
response = { "responseType": "STORAGE_LST_DONE",
"storageList": result }
return response
def run(self):
print(f"Starting AMQP server of type {self.type}...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment