You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If supplying both insertafter and insertbefore the module crashes instead of the intended warning
ISSUE TYPE
Bug Report
COMPONENT NAME
win_lineinfile
STEPS TO REPRODUCE
See summary
EXPECTED RESULTS
Warning about ignored parameter
ACTUAL RESULTS
The full traceback is:
You cannot call a method on a null-valued expression.
At line:102 char:9
+ if (-not $obj.ContainsKey("warnings")) {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvokeMethodOnNull
ScriptStackTrace:
at Add-Warning, <No file>: line 102
at <ScriptBlock>, <No file>: line 421
fatal: [10.73.84.77]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: You cannot call a method on a null-valued expression."
}
The text was updated successfully, but these errors were encountered:
SUMMARY
If supplying both insertafter and insertbefore the module crashes instead of the intended warning
ISSUE TYPE
COMPONENT NAME
win_lineinfile
STEPS TO REPRODUCE
See summary
EXPECTED RESULTS
Warning about ignored parameter
ACTUAL RESULTS
The full traceback is:
The text was updated successfully, but these errors were encountered: