Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Jun 30, 2023
1 parent cee6fcd commit 0f50941
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions magnum_cluster_api/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ def __init__(self, namespace, release_name, chart_ref, values={}):

def __call__(self):
try:
get_call = GetStatusReleaseCommand(
status = GetStatusReleaseCommand(
namespace=self.namespace,
release_name=self.release_name,
)()
status = get_call.stdout

if "STATUS: pending" in str(status):
if "STATUS: pending" in str(status.stdout):
return "Other task is in progress"
except exceptions.HelmReleaseNotFound:
pass
Expand Down

0 comments on commit 0f50941

Please sign in to comment.