diff options
| author | Surya Prakash Singh <surya.singh@nectechnologies.in> | 2016-12-26 09:59:56 +0530 |
|---|---|---|
| committer | Surya Prakash Singh <surya.singh@nectechnologies.in> | 2017-01-16 09:43:28 +0000 |
| commit | efa628d015fe0efcf7c692af7d593eac0ff87ef6 (patch) | |
| tree | 5549928ef0b259f066b005afe46c7b2a1444c96e /kolla/image | |
| parent | 12bea3f9f659e6a4e8611c5edf59e69e204c3792 (diff) | |
| download | kolla-efa628d015fe0efcf7c692af7d593eac0ff87ef6.tar.gz kolla-efa628d015fe0efcf7c692af7d593eac0ff87ef6.zip | |
Py3 and py2 implementation for kolla/image module
This commit addresses the changes in kolla/image
directory for better openstack python coding style.
unittest also added for corresponding changes.
Reference:- https://wiki.openstack.org/wiki/Python3
Change-Id: I8be60ebd214ac8ab400cc633f8e6005fb8760c24
Partially-Implements: blueprint support-python-35
Diffstat (limited to 'kolla/image')
| -rwxr-xr-x | kolla/image/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index fde63e6a0..eb9637c69 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -497,7 +497,8 @@ class KollaWorker(object): self.install_type = conf.install_type self.tag = conf.tag self.images = list() - rpm_setup_config = filter(None, conf.rpm_setup_config) + rpm_setup_config = ([repo_file for repo_file in + conf.rpm_setup_config if repo_file is not None]) self.rpm_setup = self.build_rpm_setup(rpm_setup_config) rh_base = ['centos', 'oraclelinux', 'rhel'] |
