Skip to content

Commit

Permalink
Update the flag closer to the backend update call
Browse files Browse the repository at this point in the history
  • Loading branch information
gzpcho committed Oct 16, 2024
1 parent 726767e commit 43ee2ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,6 @@ <h4 class="panel-title pull-left">Capacity</h4>
delete clusterInfo['configs']['cmp_group']
}
}
clusterInfo['isManagedResource'] = false

if (this.validateInput(clusterInfo, this.imageNameValue)) {
//Send request
Expand Down
4 changes: 4 additions & 0 deletions deploy-board/deploy_board/webapp/cluster_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def post(self, request, name, stage):
log.error("Teletraan does not support user to remove %s %s" % (field, cluster_info[field]))
raise TeletraanException("Teletraan does not support user to remove %s" % field)
cluster_info['statefulStatus'] = clusters_helper.StatefulStatuses.get_status(cluster_info['statefulStatus'])
cluster_info['isManagedResource'] = False
clusters_helper.update_cluster(request, cluster_name, cluster_info)
except NotAuthorizedException as e:
log.error("Have an NotAuthorizedException error {}".format(e))
Expand All @@ -357,6 +358,9 @@ def post(self, request, name, stage):
maxSize = int(settings['maxsize'])
clusters_helper.update_cluster_capacity(
request, cluster_name, minSize, maxSize)
cluster_info = clusters_helper.get_cluster(request, cluster_name)
cluster_info['isManagedResource'] = False
clusters_helper.update_cluster(request, cluster_name, cluster_info)
except NotAuthorizedException as e:
log.error("Have an NotAuthorizedException error {}".format(e))
return HttpResponse(e, status=403, content_type="application/json")
Expand Down

0 comments on commit 43ee2ea

Please sign in to comment.