diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-08 16:07:59 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-08 16:07:59 -0700 |
| commit | 1d0b8937d432538e78fdf93bedaeda6d9861b5a4 (patch) | |
| tree | fc28009885c1988a60a20706c025752bc04bd1f8 /glance-gateway.py | |
| parent | 8b2dfc020af34ecd1ca56e3217800aac3bf795c3 (diff) | |
list comprehension syntax
Diffstat (limited to 'glance-gateway.py')
| -rwxr-xr-x | glance-gateway.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/glance-gateway.py b/glance-gateway.py index 89ae49c..31eb210 100755 --- a/glance-gateway.py +++ b/glance-gateway.py @@ -61,8 +61,7 @@ def main(args): username=env_src.extra_envs["openbook_user"], password=env_src.extra_envs["openbook_pass"]) for region in [region for region in ob_client.get_service_managers() - if manifest["regions_to_exclude"]] is None or - region["name"] not in manifest["regions_to_exclude"]]: + if manifest["regions_to_exclude"]] is None or region["name"] not in manifest["regions_to_exclude"]]: # upload image as public env_dest = Environment(region["connectionUrl"], args.os_project_name, |
