Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
fix(images): only shows active images now (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz authored Sep 3, 2018
1 parent af6fd7c commit 6b9fcdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
2 changes: 1 addition & 1 deletion gen-py/VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_Images(self):
self.logger.info("Get Images")
images = list()
try:
for img in filter(lambda x: 'tags' in x and len(x['tags']) > 0, self.conn.list_images()):
for img in filter(lambda x: 'tags' in x and len(x['tags']) > 0 and x['status'] == 'active', self.conn.list_images()):

metadata = img['metadata']
description = metadata.get('description')
Expand Down
50 changes: 0 additions & 50 deletions test/keys/server.pem

This file was deleted.

0 comments on commit 6b9fcdb

Please sign in to comment.