Revision a6e6fe48 snf-cyclades-app/synnefo/logic/management/commands/network-inspect.py
b/snf-cyclades-app/synnefo/logic/management/commands/network-inspect.py | ||
---|---|---|
1 |
# Copyright 2012-2013 GRNET S.A. All rights reserved.
|
|
1 |
# Copyright 2012-2014 GRNET S.A. All rights reserved.
|
|
2 | 2 |
# |
3 | 3 |
# Redistribution and use in source and binary forms, with or |
4 | 4 |
# without modification, are permitted provided that the following |
... | ... | |
54 | 54 |
if len(args) != 1: |
55 | 55 |
raise CommandError("Please provide a network ID.") |
56 | 56 |
|
57 |
network = common.get_network(args[0])
|
|
57 |
network = common.get_resource("network", args[0])
|
|
58 | 58 |
displayname = options['displayname'] |
59 | 59 |
|
60 | 60 |
pprint.pprint_network(network, display_mails=displayname, |
Also available in: Unified diff