diff options
author | Li Yi <yix.li@intel.com> | 2011-05-03 15:38:18 +0800 |
---|---|---|
committer | Li Yi <yix.li@intel.com> | 2011-06-22 10:57:44 +0800 |
commit | e878a04307cd6795689b5609c5d1ca9c965c6ecf (patch) | |
tree | 225bfa8a837bedc3b02af12faf2b7a82af8d394e | |
parent | df91740e94d367b7a86560bae83a525f26276626 (diff) | |
download | kickstarter-e878a04307cd6795689b5609c5d1ca9c965c6ecf.tar.gz kickstarter-e878a04307cd6795689b5609c5d1ca9c965c6ecf.tar.bz2 kickstarter-e878a04307cd6795689b5609c5d1ca9c965c6ecf.zip |
minor fix BMC#16397: accept only .yaml when create xml
-rwxr-xr-x | tools/kickstarter | 2 |
1 files changed, 1 insertions, 1 deletions
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) |