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

b/snf-cyclades-app/synnefo/logic/management/commands/port-inspect.py
1
# Copyright 2013 GRNET S.A. All rights reserved.
1
# Copyright 2013-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
......
62 62
        if len(args) != 1:
63 63
            raise CommandError("Please provide a port ID")
64 64

  
65
        port = common.get_port(args[0])
65
        port = common.get_resource("port", args[0])
66 66

  
67 67
        pprint.pprint_port(port, stdout=self.stdout)
68 68
        self.stdout.write('\n\n')

Also available in: Unified diff