Conditions | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from backuppc_clone.DataLayer import DataLayer |
||
16 | def _handle_command(self) -> None: |
||
17 | """ |
||
18 | Executes the command. |
||
19 | """ |
||
20 | host = self.argument('host') |
||
21 | |||
22 | self._io.title('Deleting Host {}'.format(host)) |
||
23 | |||
24 | helper = HostDelete(self._io) |
||
25 | helper.delete_host(host) |
||
26 | |||
27 | DataLayer.instance.commit() |
||
28 | |||
30 |