Commit db7185fb authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_computer_immobilisation: Add jio api revision on Computer

parent 47edb1cd
...@@ -76,6 +76,7 @@ class Computer(Machine, JSONType): ...@@ -76,6 +76,7 @@ class Computer(Machine, JSONType):
"compute_node_id": self.getReference().decode("UTF-8"), "compute_node_id": self.getReference().decode("UTF-8"),
"title": self.getTitle().decode("UTF-8"), "title": self.getTitle().decode("UTF-8"),
"compute_partition_list": [], "compute_partition_list": [],
"api_revision": self.getJIOAPIRevision(),
} }
compute_partition_list = self.contentValues( compute_partition_list = self.contentValues(
portal_type="Compute Partition", portal_type="Compute Partition",
......
...@@ -146,6 +146,11 @@ ...@@ -146,6 +146,11 @@
"initialisation_comand": {\n "initialisation_comand": {\n
"title": "Command to initiate slapos node",\n "title": "Command to initiate slapos node",\n
"type": "string"\n "type": "string"\n
},\n
"api_revision": {\n
"title": "API Revision",\n
"type": "string",\n
"description": "The API Revision is set by the master node to mark when the element was last processed. It is incremental. If revision has changed, critical data has been updated"\n
}\n }\n
}\n }\n
}\n }\n
......
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