[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [test-API][PATCH] Delete the unused util param



On 08/07/2012 07:31 PM, Wayne Sun wrote:
   The util is undefined and cause case run fail, it's with no use
   and should be deleted.

Signed-off-by: Wayne Sun <gsun redhat com>
---
  repos/interface/create.py |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/repos/interface/create.py b/repos/interface/create.py
index 50d92d2..f5ef308 100644
--- a/repos/interface/create.py
+++ b/repos/interface/create.py
@@ -25,7 +25,7 @@ def display_current_interface(conn):
      logger.debug("current defined host interface list: %s " \
  % conn.listDefinedInterfaces())
-def check_create_interface(ifacename, util):
+def check_create_interface(ifacename):
      """Check creating interface result, it will can ping itself
         if create interface is successful.
      """
@@ -67,7 +67,7 @@ def create(params):
          ifaceobj.create(0)
          logger.info("create host interface %s" % ifacename)
          display_current_interface(conn)
-        if check_create_interface(ifacename, util):
+        if check_create_interface(ifacename):
              logger.info("create host interface %s is successful" % ifacename)
          else:
              logger.error("fail to check create interface")

   ACK, thanks and pushed.

   Guannan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]