Skip to content

Commit

Permalink
correcting the check in add basic images to work for liberty or above
Browse files Browse the repository at this point in the history
Change-Id: I459a1e049ff853c2b42329218ffcae2af5cfa4a3
Closes-Bug: #1639210
  • Loading branch information
sundarkh committed Nov 4, 2016
1 parent ceb598e commit 82b3519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile/tasks/helpers.py
Expand Up @@ -630,7 +630,7 @@ def add_basic_images(image=None):
openstack_sku = get_openstack_sku()
liberty_or_above = is_liberty_or_above()

if os_type in ['ubuntu'] and liberty_or_above:
if liberty_or_above:
if ".vmdk" in loc:
if 'converts' in loc:
glance_id = run("(source /etc/contrail/openstackrc; glance --insecure image-create --name '"+name+"' --visibility public --container-format bare --disk-format vmdk --property vmware_disktype='sparse' --property vmware_adaptertype='ide' < "+remote+" | grep -e 'id\>' | awk '{printf $4}')")
Expand Down

0 comments on commit 82b3519

Please sign in to comment.