From 26a388edc525dd597b8cf267034b64272a40a13c Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 9 Nov 2012 15:54:08 -0800 Subject: [PATCH] check for external configs --- tools/kickstarter | 10 +++++----- 1 file 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'): -- 2.7.4