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

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

 



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@xxxxxxxxxx>
---
  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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]