Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
1 | #!/usr/bin/env python |
||
21 | class NodeRemanage(OrionBaseAction): |
||
22 | def run(self, node, platform): |
||
23 | """ |
||
24 | Remanage an Orion node |
||
25 | """ |
||
26 | |||
27 | self.connect(platform) |
||
28 | |||
29 | NodeId = "N:{}".format(self.get_node_id(node)) |
||
30 | |||
31 | self.invoke("Orion.Nodes", "Remanage", NodeId) |
||
32 | |||
33 | # The Invoke returns None, so return something. |
||
34 | return True |
||
35 |