cs_project.py: pass cleanup=true in deleteProject API#122
cs_project.py: pass cleanup=true in deleteProject API#122resmo merged 2 commits intongine-io:masterfrom
Conversation
|
cc @resmo |
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
the new flag was introduced in cloudstack 4.16, which breaks backwards compatibility somehow.
apache/cloudstack#4617
|
@weizhouapache well, didn't test it yet but in the past, cloudstack just ignored unknown flags? So for earlier versions, this shouldn't break backwards compatibility right? |
@resmo There will be a warning message in log (just a warning) like |
| args = { | ||
| 'id': project['id'] | ||
| 'id': project['id'], | ||
| 'cleanup': 'true' |
There was a problem hiding this comment.
This should actually be a bool like so 'cleanup': True
There was a problem hiding this comment.
Sure @resmo I can fix that. Does ansible/module, convert boolen True to 'true' string when pass the args in the API call?
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #122 +/- ##
=======================================
Coverage 83.77% 83.77%
=======================================
Files 56 56
Lines 5645 5645
Branches 1271 1271
=======================================
Hits 4729 4729
Misses 472 472
Partials 444 444
☔ View full report in Codecov by Sentry. |
Pass cleanup=true in the delete project module, refer:
https://cloudstack.apache.org/api/apidocs-4.18/apis/deleteProject.html