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

b/snf-cyclades-app/synnefo/logic/management/commands/floating-ip-remove.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
......
57 57
        for floating_ip_id in args:
58 58
            self.stdout.write("\n")
59 59
            try:
60
                floating_ip = common.get_floating_ip_by_id(floating_ip_id,
61
                                                           for_update=True)
60
                floating_ip = common.get_resource("floating-ip",
61
                                                  floating_ip_id,
62
                                                  for_update=True)
62 63
                ips.delete_floating_ip(floating_ip)
63 64
                self.stdout.write("Deleted floating IP '%s'.\n" %
64 65
                                  floating_ip_id)

Also available in: Unified diff