diff --git a/src/sunstone/models/OpenNebulaJSON/ImageJSON.rb b/src/sunstone/models/OpenNebulaJSON/ImageJSON.rb index 13c1230de2..4b94386d32 100644 --- a/src/sunstone/models/OpenNebulaJSON/ImageJSON.rb +++ b/src/sunstone/models/OpenNebulaJSON/ImageJSON.rb @@ -32,7 +32,7 @@ module OpenNebulaJSON template = template_to_str(image_hash) end - OpenNebula::ImageRepository.new.create(self, template) + self.allocate(template) end def perform_action(template_json)