Signed-off-by: Agata Murawska <[email protected]>
---
lib/ovf.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/ovf.py b/lib/ovf.py
index 87e79e3..2f18c5f 100644
--- a/lib/ovf.py
+++ b/lib/ovf.py
@@ -514,11 +514,11 @@ class OVFWriter(object):
@ivar hardware_list: list of items prepared for VirtualHardwareSection
"""
- def __init__(self, ganeti_opts):
+ def __init__(self, has_gnt_sec):
"""Initialize the writer - set the top element.
- @type ganeti_opts: bool
- @param ganeti_opts: if the Ganeti schema should be added - i.e. this means
+ @type has_gnt_sec: bool
+ @param has_gnt_sec: if the Ganeti schema should be added - i.e. this means
that Ganeti section will be present
"""
@@ -530,7 +530,7 @@ class OVFWriter(object):
"xmlns": OVF_SCHEMA,
"xml:lang": "en-US",
}
- if ganeti_opts:
+ if has_gnt_sec:
env_attribs["xmlns:gnt"] = GANETI_SCHEMA
self.tree = ET.Element("Envelope", attrib=env_attribs)
self.hardware_list = []
--
1.7.3.1