diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-09 15:54:08 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-09 15:54:08 -0800 |
commit | 26a388edc525dd597b8cf267034b64272a40a13c (patch) | |
tree | b92d724c4aedc50383e9caa6e7edd5605dab14d1 | |
parent | fcd55d4e82cc0988f9a8943defe85d20a1f5639d (diff) | |
download | kickstarter-26a388edc525dd597b8cf267034b64272a40a13c.tar.gz kickstarter-26a388edc525dd597b8cf267034b64272a40a13c.tar.bz2 kickstarter-26a388edc525dd597b8cf267034b64272a40a13c.zip |
check for external configs
-rwxr-xr-x | tools/kickstarter | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/kickstarter b/tools/kickstarter index 5badc9c..e699670 100755 --- a/tools/kickstarter +++ b/tools/kickstarter @@ -57,16 +57,16 @@ def image_xml(root, img): s.append(cc) root.append(s) -def create_xml(image_meta): +def create_xml(image_meta, external_configs=[]): root = etree.Element("image-configs") if image_meta.has_key('Configurations'): for img in image_meta['Configurations']: image_xml(root,img) external = [] - if self.external: - external = external + self.external - if self.image_meta.has_key('ExternalConfigs') and self.image_meta['ExternalConfigs']: - external = external + self.image_meta['ExternalConfigs'] + if external_configs: + external = external + external_configs + if image_meta.has_key('ExternalConfigs') and image_meta['ExternalConfigs']: + external = external + image_meta['ExternalConfigs'] for path in external: for f in os.listdir(path): if f.endswith('.yaml'): |