Skip to content

Commit

Permalink
Merge pull request #111 from 2ndWatch/launch_case_fix
Browse files Browse the repository at this point in the history
fix case launch issue
  • Loading branch information
twarnock authored Apr 14, 2020
2 parents 15daa49 + c71b6b6 commit 607b72f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SHA1 := $$(git log -1 --pretty=%h)
CURRENT_BRANCH := $$(git symbolic-ref -q --short HEAD)
LATEST_TAG := ${REPO_NAME}:latest
GIT_TAG := ${REPO_NAME}:${SHA1}
VERSION := v0.2.4
VERSION := v0.2.5

info: ## Show information about the current git state.
@echo "Github Project: https://github.com/${REPO_NAME}\nCurrent Branch: ${CURRENT_BRANCH}\nSHA1: ${SHA1}\n"
Expand Down
4 changes: 2 additions & 2 deletions cloudendure/cloudendure.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def launch(self) -> Dict[str, Any]:
for machine in json.loads(machines_response.text).get("items", []):
source_props: Dict[str, Any] = machine.get("sourceProperties", {})
machine_data: Dict[str, Any] = {}
ce_name = source_props.get("name","NONE")
ce_name = source_props.get("name", "NONE")
if _machine == ce_name.upper():
if machine.get("replica"):
print("Target machine already launched")
Expand Down Expand Up @@ -565,7 +565,7 @@ def launch(self) -> Dict[str, Any]:
print("ERROR: Launch target machine failed!")
self.event_handler.add_event(Event.EVENT_FAILED, machine_name=_machine)
else:
#print(f"Machine: ({source_props['name']}) - Not a machine we want to launch...")
# print(f"Machine: ({source_props['name']}) - Not a machine we want to launch...")
self.event_handler.add_event(Event.EVENT_IGNORED, machine_name=_machine)
return response_dict

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cloudendure"
version = "0.2.4"
version = "0.2.5"
description = "Python wrapper and CLI for CloudEndure"
authors = ["Mark Beacom <mark@markbeacom.com>", "Tom Warnock <twarnock@2ndwatch.com>"]
maintainers = ["Evan Lucchesi <evan@2ndwatch.com>", "Nick Selpa <nselpa@2ndwatch.com>"]
Expand Down

0 comments on commit 607b72f

Please sign in to comment.