Skip to content

Commit

Permalink
add pretty messages for insp and rm img
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasTomecek committed Nov 11, 2015
1 parent 4297e60 commit b1cad5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sen/docker_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ def base_image(self):
else:
return parent_image

@operation("")
@operation("Inspect image {object_short_name}.")
def inspect(self, cached=False):
if self._inspect is None or cached is False:
self._inspect = self.d.inspect_image(self.image_id)
return self._inspect

@operation("")
@operation("{object_type} {object_short_name} removed!")
def remove(self):
return self.d.remove_image(self.image_id)

Expand Down Expand Up @@ -354,7 +354,7 @@ def matches_search(self, s):
s in self.short_name
# api calls

@operation("")
@operation("Inspect container {object_short_name}.")
def inspect(self, cached=False):
if cached is False or self._inspect is None:
self._inspect = self.d.inspect_container(self.container_id)
Expand Down

0 comments on commit b1cad5e

Please sign in to comment.