Revision a6e6fe48 snf-cyclades-app/synnefo/logic/management/commands/subnet-inspect.py

b/snf-cyclades-app/synnefo/logic/management/commands/subnet-inspect.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.
33 33

  
34
from optparse import make_option
34
#from optparse import make_option
35 35

  
36 36
from django.core.management.base import BaseCommand, CommandError
37 37
from synnefo.management import pprint, common
......
46 46
        if len(args) != 1:
47 47
            raise CommandError("Please provide a subnet ID.")
48 48

  
49
        subnet = common.get_subnet(args[0])
49
        subnet = common.get_resource("subnet", args[0])
50 50

  
51 51
        pprint.pprint_subnet_in_db(subnet, stdout=self.stdout)
52 52
        self.stdout.write("\n\n")

Also available in: Unified diff