X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fconfig.py;h=6b5021a2c197068e2ba82ec79449d3e9869cc644;hb=60d2025808adf1dad6a41e5df34d0eff9c725e2e;hp=b5b8450105be24689705580016f40112f8d23d4b;hpb=ccb79f369e484832deb99b989fada30c6b730697;p=functest.git diff --git a/functest/utils/config.py b/functest/utils/config.py old mode 100755 new mode 100644 index b5b845010..6b5021a2c --- a/functest/utils/config.py +++ b/functest/utils/config.py @@ -1,8 +1,10 @@ -import os +#!/usr/bin/env python import yaml -import env +import six + +from functest.utils import env class Config(object): @@ -16,7 +18,7 @@ class Config(object): self._set_others() def _parse(self, attr_now, left_parametes): - for param_n, param_v in left_parametes.iteritems(): + for param_n, param_v in six.iteritems(left_parametes): attr_further = self._get_attr_further(attr_now, param_n) if attr_further: self.__setattr__(attr_further, param_v) @@ -28,12 +30,6 @@ class Config(object): '{}_{}'.format(attr_now, next) if attr_now else next) def _set_others(self): - self.env_active = os.path.join(self.dir_functest_conf, "env_active") - + pass CONF = Config() - -if __name__ == "__main__": - print CONF.vnf_cloudify_ims - print CONF.vnf_cloudify_ims_tenant_images - print CONF.vnf_cloudify_ims_tenant_images_centos_7