Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Sep 30, 2015
1 parent 55f0750 commit a3ae55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudbridge/providers/openstack/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OpenStackImage(MachineImage):

def __init__(self, provider, os_image):
self.provider = provider
if isinstance(os_image):
if isinstance(os_image, MachineImage):
self._os_image = os_image._os_image
else:
self._os_image = os_image
Expand Down Expand Up @@ -161,4 +161,4 @@ def create_image(self, name):
Create a new image based on this instance.
"""
image_id = self._os_instance.create_image(name)
return OpenStackImage(self.provider, self.provider.images.get(image_id))
return OpenStackImage(self.provider, self.provider.images.get_image(image_id))

0 comments on commit a3ae55d

Please sign in to comment.