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

Commit

Permalink
fix(VirtualMachineHandler): fixed Typo and casting to string
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jan 22, 2018
1 parent 68711ef commit 615861d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gen-py/VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ def start_server(self, flavor, image, public_key, servername, elixir_id):
metadata = { 'elixir_id': elixir_id}
image = self.conn.compute.find_image(image)
if image is None:
self.logger.error("Image " + image + " not found")
raise imageNotFoundException(Reason='Image ' + image + ' was not found!')
self.logger.error("Image " + str(image) + " not found")
raise imageNotFoundException(Reason='Image ' + str(image) + ' was not found!')
flavor = self.conn.compute.find_flavor(flavor)
if flavor is None:
self.logger.error("Flavor " + image + " not found")
raise flavorNotFoundException(Reason='Flavor' + flavor + ' was not found!')
self.logger.error("Flavor " + str(flavor) + " not found")
raise flavorNotFoundException(Reason='Flavor' + str(flavor) + ' was not found!')
network = self.conn.network.find_network(self.NETWORK)
if network is None:
self.logger.error("Network " + image + " not found")
raise networkNotFoundException(Reason='Network ' + network + 'was not found!')
self.logger.error("Network " + str(network) + " not found")
raise networkNotFoundException(Reason='Network ' + str(network) + 'was not found!')

if self.conn.compute.find_server(servername) is not None:
self.logger.error("Instance with name " + servername + ' already exist')
Expand Down

0 comments on commit 615861d

Please sign in to comment.