Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   Allow Image Parser to be called without a file name. This is used to support using the object model directly (http://www.linux-archive.org/fedora-linux-management-tools/187864-allow-image-parser-called-without-file-name-used-support-using-object-model-directly.html)

Bryan Kearney 11-04-2008 08:17 PM

Allow Image Parser to be called without a file name. This is used to support using the object model directly
 
# HG changeset patch
# User Bryan Kearney <bkearney@redhat.com>
# Date 1225833405 18000
# Node ID 92ad5a3f9c3ac47c96f7cb54f3e2632ebe3a037d
# Parent 352ef78f5a1fae402be672e80b1ab96c7408167e
Allow Image Parser to be called without a file name. This is used to support using the object model directly

diff -r 352ef78f5a1f -r 92ad5a3f9c3a virtinst/ImageParser.py
--- a/virtinst/ImageParser.py Tue Nov 04 13:57:56 2008 -0500
+++ b/virtinst/ImageParser.py Tue Nov 04 16:16:45 2008 -0500
@@ -35,7 +35,10 @@
def __init__(self, node = None, base = None, filename = None):
self.storage = {}
self.domain = None
- self.filename = os.path.abspath(filename)
+ if filename == None:
+ self.filename = None
+ else:
+ self.filename = os.path.abspath(filename)
if base is None:
if filename is not None:
self.base = os.path.dirname(filename)

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


All times are GMT. The time now is 06:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.