| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 19 | class NodeRemanage(OrionBaseAction): |
||
| 20 | def run(self, node, platform): |
||
| 21 | """ |
||
| 22 | Remanage an Orion node |
||
| 23 | """ |
||
| 24 | |||
| 25 | self.connect(platform) |
||
| 26 | |||
| 27 | NodeId = "N:{}".format(self.get_node_id(node)) |
||
| 28 | |||
| 29 | self.invoke("Orion.Nodes", "Remanage", NodeId) |
||
| 30 | |||
| 31 | # The Invoke returns None, so return something. |
||
| 32 | return True |
||
| 33 |