Skip to content

Commit

Permalink
Remove client id from revision property when updating or deleting pro…
Browse files Browse the repository at this point in the history
…cess groups
  • Loading branch information
gsingh395 committed Nov 17, 2020
1 parent fe1f691 commit 43a6e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nifi_cluster_coordinator/services/environment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _update(
delete_version_url = '/' + url_helper.construct_path_parts(['versions', 'process-groups', environment_json['id']])
response = requests.delete(
**cluster._get_connection_details(delete_version_url),
params={'clientId': environment_json['revision']['clientId'], 'version': str(environment_json['revision']['version'])})
params={'version': str(environment_json['revision']['version'])})
if response.status_code != 200:
logger.warning(response.text)
return
Expand Down Expand Up @@ -191,7 +191,7 @@ def _delete(cluster: Cluster, project: Project, delete_environment_json):
try:
response = requests.delete(
**cluster._get_connection_details(delete_url),
params={'clientId': delete_environment_json['revision']['clientId'], 'version': str(delete_environment_json['revision']['version'])})
params={'version': str(delete_environment_json['revision']['version'])})
if response.status_code != 200:
logger.warning(response.text)
return
Expand Down

0 comments on commit 43a6e2c

Please sign in to comment.