Skip to content

Commit

Permalink
Merge pull request #135 from hydroshare/134-specs-image-names
Browse files Browse the repository at this point in the history
#134 added support for model images with tags
  • Loading branch information
Castronova authored Oct 3, 2018
2 parents 0747f9d + 2621a6a commit 3ca0f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/specs/specworker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def task_sanity_check(string, wait=1):
def task_get_registered_images():

try:
registered_images = os.environ['IMAGES'].split(':')
registered_images = os.environ['IMAGES'].split(';')
res = os.popen("docker images").read()
res = res.split('\n')
imgs = [res[i].split()[0] for i in range(1,len(res)-1) if res[i].split()[0] in registered_images]
imgs = [':'.join(res[i].split()[0:2]) for i in range(1,len(res)-1) if ':'.join(res[i].split()[0:2]) in registered_images]
except Excpetion as e:
print('Exception occurred when retrieving image list: %s' % e)
return []
Expand Down

0 comments on commit 3ca0f2e

Please sign in to comment.