Permalink
Browse files

Fixes doc string and string formatting

A small change to fix a doc sting mistake and a string formatting
error on floatingIP. Fixes bug 1043906.

Change-Id: I212e317efb81afdb450fd79f16552fd393e86bd9
  • Loading branch information...
1 parent 3a89425 commit 46a87dc8758aaf666800b37f3d5a3bd3999063a6 @sulochan sulochan committed Aug 30, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 novaclient/v1_1/servers.py
  2. +1 −1 novaclient/v1_1/shell.py
@@ -83,9 +83,9 @@ def add_floating_ip(self, address):
def remove_floating_ip(self, address):
"""
- Add floating IP to an instance
+ Remove floating IP from an instance
- :param address: The ip address or FloatingIP to add to remove
+ :param address: The ip address or FloatingIP to remove
"""
self.manager.remove_floating_ip(self, address)
View
@@ -1281,7 +1281,7 @@ def do_floating_ip_delete(cs, args):
for floating_ip in floating_ips:
if floating_ip.ip == args.address:
return cs.floating_ips.delete(floating_ip.id)
- raise exceptions.CommandError("Floating ip %s not found.", args.address)
+ raise exceptions.CommandError("Floating ip %s not found." % args.address)
def do_floating_ip_list(cs, _args):

0 comments on commit 46a87dc

Please sign in to comment.