Revision d27b16cc snf-cyclades-app/synnefo/api/management/commands/network-remove.py
b/snf-cyclades-app/synnefo/api/management/commands/network-remove.py | ||
---|---|---|
37 | 37 |
|
38 | 38 |
class Command(RemoveCommand): |
39 | 39 |
can_import_settings = True |
40 |
args = "<Network ID or Network IDs>" |
|
40 | 41 |
help = "Remove a network from the Database, and Ganeti" |
41 | 42 |
|
42 | 43 |
@convert_api_faults |
... | ... | |
45 | 46 |
raise CommandError("Please provide a network ID") |
46 | 47 |
|
47 | 48 |
force = options['force'] |
48 |
self.confirm_deletion(force, "network(s)", args) |
|
49 |
message = "networks" if len(args) > 1 else "network" |
|
50 |
self.confirm_deletion(force, message, args) |
|
49 | 51 |
|
50 | 52 |
for network_id in args: |
51 | 53 |
self.stdout.write("\n") |
Also available in: Unified diff