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

Commit

Permalink
Merge pull request #123 from deNBI/feature/snapshot_image_diff
Browse files Browse the repository at this point in the history
feature(Snapshot):visual difference in snapshots and images
  • Loading branch information
dweinholz authored Aug 19, 2019
2 parents 88440d2 + a619a36 commit edf23ec
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def get_Images(self):
metadata = img["metadata"]
description = metadata.get("description")
tags = img.get("tags")
image_type = img.get("image_type", "image")
if description is None:
self.logger.warning("No Description and for " + img["name"])

Expand All @@ -273,7 +274,10 @@ def get_Images(self):
openstack_id=img["id"],
description=description,
tag=tags,
is_snapshot=image_type == "snapshot"
)
self.logger.info(image)

images.append(image)

return images
Expand Down
14 changes: 13 additions & 1 deletion VirtualMachineService/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ struct Image{

/** List of tags from image */
9: required list<string> tag

/** If the Image is a snapshot*/
10:optional bool is_snapshot
}
/**
* This Struct defines a VirtualMachine.
Expand Down

0 comments on commit edf23ec

Please sign in to comment.