On Fri, Sep 18, 2009 at 11:53:22AM +0100, Michael Hanselmann wrote:
> 2009/9/18 Flavio Silvestrow <[email protected]>:
> >   if result.failed:
> > -    raise errors.CommandError("Could not update table, error %s" %
> > +    raise ganeti_errors.CommandError("Could not update table, error %s" %
> >                                result.output)
> 
> Please fix the indentation here (and maybe in other places, didn't check).

Oops, slipped through that one. Fixed.

---
 lib/networktables.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/networktables.py b/lib/networktables.py
index 4828c45..efb335d 100644
--- a/lib/networktables.py
+++ b/lib/networktables.py
@@ -105,7 +105,7 @@ def UpdateNetworkEntry(ip_address, dest_address, context, 
iface):
                          extra_args])
   if result.failed:
     raise ganeti_errors.CommandError("Could not update table, error %s" %
-                               result.output)
+                                     result.output)
 
 
 def UpdateNetworkTable(instances, context, iface):
@@ -128,7 +128,7 @@ def UpdateNetworkTable(instances, context, iface):
   result = utils.RunCmd(["ip", context, "show", "dev", iface])
   if result.failed:
     raise ganeti_errors.CommandError("Could not list table, error %s" %
-                               result.output)
+                                     result.output)
   table = result.output.splitlines()
 
   # Check if the local entries are up to date.

Reply via email to