commit 42161e907bb91abda69831109283dc5a3b5bd366
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Fri Apr 19 12:48:18 2013 +0200
Machine: Fixing copy-paste error
This patch fixes a copy-paste error in the factory method of Machine
for unused interfaces. The parameters were swapped.
Reported-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
lnst/Controller/Machine.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index ef716ec..7abb484 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -76,7 +76,7 @@ class Machine(object):
return self._add_interface(if_id, if_type, StaticInterface)
def new_unused_interface(self, if_type):
- return self._add_interface(if_type, None, UnusedInterface)
+ return self._add_interface(None, if_type, UnusedInterface)
def new_virtual_interface(self, if_id, if_type):
return self._add_interface(if_id, if_type, VirtualInterface)
Show replies by date