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

b/snf-cyclades-app/synnefo/logic/management/commands/port-remove.py
1
# Copyright 2011-2013 GRNET S.A. All rights reserved.
1
# Copyright 2011-2014 GRNET S.A. All rights reserved.
2 2
#
3 3
# Redistribution and use in source and binary forms, with or without
4 4
# modification, are permitted provided that the following conditions
......
62 62
        for port_id in args:
63 63
            self.stdout.write("\n")
64 64
            try:
65
                port = common.get_port(port_id, for_update=True)
65
                port = common.get_resource("port", port_id, for_update=True)
66 66

  
67 67
                servers.delete_port(port)
68 68

  

Also available in: Unified diff