Uh oh!
There was an error while loading. Please reload this page.
Cmd results - #13
Conversation
alanag13
commented
Jun 29, 2020
can you an alias an output? i this breaking is going to cause us problems, I'd rather just point the old to the new. |
antazoey
commented
Jun 29, 2020
@alanag13 You were right, this is what they want. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| file_results = CommandResults( | ||
| outputs_prefix="File", outputs_key_field=None, outputs=file_context | ||
| ) | ||
| return code42_results, file_results |
There was a problem hiding this comment.
@kiran-chaudhary The way it is set up, these commands are allowed to return 1 or more CommandResults objects. This command is the only one that returns more than one. The reason for this is because they have different outputs_prefix properties, which is important when digging through Incident Context looking at the Outputs - and mapping outputs to different things, etc. Our integration modifies the system "File" outputs (line 744) as well as our own custom-defined Code42 outputs.
This is the new way we are supposed to return stuff from Commands. The old way is deprecated and I was asked to change it. There are no changes in usage.
Also squeezes in some missing changelog entries (the only breaking changes). Which by the way could cause problems for us.