__repr__ for images shows path instead of driver name, fix doc reference output
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8537731e Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8537731e Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8537731e Branch: refs/heads/trunk Commit: 8537731e0d7639e1d39fd2fb693fd7bf07aaea1f Parents: a3ed405 Author: anthony-shaw <anthony.p.s...@gmail.com> Authored: Mon Jan 11 16:04:55 2016 +1100 Committer: anthony-shaw <anthony.p.s...@gmail.com> Committed: Mon Jan 11 16:04:55 2016 +1100 ---------------------------------------------------------------------- docs/examples/container/ecs/container_registry.py | 2 +- libcloud/container/base.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/8537731e/docs/examples/container/ecs/container_registry.py ---------------------------------------------------------------------- diff --git a/docs/examples/container/ecs/container_registry.py b/docs/examples/container/ecs/container_registry.py index 2003d5b..9df770f 100644 --- a/docs/examples/container/ecs/container_registry.py +++ b/docs/examples/container/ecs/container_registry.py @@ -19,7 +19,7 @@ for image in client.list_images('my-image'): image = client.get_image('my-image', '14.04') print(image.path) -# >> 647433528374.dkr.ecr.region.amazonaws.com/my-images:14.04 +# >> 647433528374.dkr.ecr.region.amazonaws.com/my-image:14.04 # Deploy that image cluster = conn.list_clusters()[0] http://git-wip-us.apache.org/repos/asf/libcloud/blob/8537731e/libcloud/container/base.py ---------------------------------------------------------------------- diff --git a/libcloud/container/base.py b/libcloud/container/base.py index 7abe664..a03ea91 100644 --- a/libcloud/container/base.py +++ b/libcloud/container/base.py @@ -123,8 +123,8 @@ class ContainerImage(object): **kwargs) def __repr__(self): - return ('<ContainerImage: id=%s, name=%s, provider=%s ...>' % - (self.id, self.name, self.driver.name)) + return ('<ContainerImage: id=%s, name=%s, path=%s ...>' % + (self.id, self.name, self.path)) class ContainerCluster(object):