From e878a04307cd6795689b5609c5d1ca9c965c6ecf Mon Sep 17 00:00:00 2001 From: Li Yi Date: Tue, 3 May 2011 15:38:18 +0800 Subject: minor fix BMC#16397: accept only .yaml when create xml --- tools/kickstarter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kickstarter b/tools/kickstarter index f00aec2..9deb24f 100755 --- a/tools/kickstarter +++ b/tools/kickstarter @@ -169,7 +169,7 @@ def create_xml(image_meta): image_xml(root,img) for path in image_meta['ExternalConfigs']: for f in os.listdir(path): - if '.yaml' in f: + if f.endswith('.yaml'): fp = file('%s/%s' %(path, f), 'r') local = yaml.load(fp) conf = ks.parse(local) -- cgit v1.2.3