-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[minor_change] add support for checkmode in aci_rest module #470
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #470 +/- ##
==========================================
- Coverage 96.53% 96.53% -0.01%
==========================================
Files 181 183 +2
Lines 8291 8456 +165
Branches 1222 1259 +37
==========================================
+ Hits 8004 8163 +159
- Misses 217 222 +5
- Partials 70 71 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
But could not test it completely because of the <urlopen error timed out>
plugins/module_utils/aci.py
Outdated
@@ -1446,6 +1446,9 @@ def exit_json(self, filter_existing=None, **kwargs): | |||
self.result["sent"] = self.config | |||
self.result["proposed"] = self.proposed | |||
|
|||
elif self.__class__.__name__ == "ACIRESTModule" and self.method in ["POST", "DELETE"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not do this->
elif "state" not in self.params
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is possible but this assures it is only executed for ACIRESTModule class ( which is only used in aci_rest module). In case any other module has state not in self.params it would still execute which I want to avoid.
a786ff6
to
d328643
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…esult for non checkmode operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you check over the sanity test again? it seems like they were cancelled for some reason.
@gmicol when I run local I see only 2 pylint issues: ERROR: Found 2 pylint issue(s) which need to be resolved: These are not related to the PR of mine. Also I do not see a reason for the cancel so not sure why this occurs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
… to the aci_rest module
423781f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes #436