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: Ib1a3ce3260c02810fafb442bee586a95fb777a45
Closes-Bug: #1639210
  • Loading branch information
sundarkh committed Nov 4, 2016
1 parent 3e30d03 commit fb7c5b1
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 fb7c5b1

Please sign in to comment.