Skip to content

Commit

Permalink
Removed extra dot
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bordon committed Jun 11, 2024
1 parent 7a2b06c commit 144039c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployability/modules/allocation/vagrant/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def status(self) -> str:
output = VagrantUtils.remote_command(f"sudo test -d {self.host_instance_dir} && echo 'Directory exists' || echo 'Directory does not exist'", self.remote_host_parameters)
if 'Directory exists' in output:
if VagrantUtils.remote_command(f"sudo /usr/local/bin/prlctl list -a | grep {self.identifier}", self.remote_host_parameters):
logger.warning(f"The instance was found, it will be deleted. The creation of the instance must be retried..")
logger.warning(f"The instance was found, it will be deleted. The creation of the instance must be retried.")
self.__run_vagrant_command(['destroy', '-f'])
self.__cleanup_remote_host()
raise ValueError(f"Cannot obtain the status of the instance {self.identifier}, the creation of the instance must be retried..")
raise ValueError(f"Cannot obtain the status of the instance {self.identifier}, the creation of the instance must be retried.")
else:
VagrantUtils.remote_command(f"sudo rm -rf {self.host_instance_dir}", self.remote_host_parameters)
raise ValueError(f"Instance {self.identifier} is not running, remote instance dir {self.host_instance_dir} was removed. The creation of the instance must be retried.")
Expand Down

0 comments on commit 144039c

Please sign in to comment.