Skip to content

Commit

Permalink
Generic polling logs (demisto#28070)
Browse files Browse the repository at this point in the history
* Added debug logs to ScheduleGenericPolling

* Added RNs

* Bump pack from version CommonScripts to 1.11.99.

* updated RN

* updated RN

* Bump pack from version CommonScripts to 1.13.0.

* Bump pack from version CommonScripts to 1.13.0.

* updated RN

* pre-commit fix

---------

Co-authored-by: Content Bot <bot@demisto.com>
  • Loading branch information
2 people authored and xsoar-bot committed Aug 2, 2023
1 parent 8eb158f commit 08771a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Packs/CommonScripts/ReleaseNotes/1_12_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### ScheduleGenericPolling

- Documentation and metadata improvements.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Possible inputs: null, int, str, bytes, ["","",...], [int, int], 'a,b,...', '"a","b",...', '["","",...]'
def parseIds(idsArg):
if idsArg is None:
return
return None
if isinstance(idsArg, list):
return ','.join(map(str, idsArg))
if isinstance(idsArg, str):
Expand Down Expand Up @@ -72,7 +72,8 @@ def main():
# Verify correct dt path (does not verify condition!)
if not demisto.dt(demisto.context(), dt):
if not demisto.dt(demisto.context(), re.sub('\(.*\)', '', dt)):
return_error("Incorrect dt path: no ids found")
demisto.debug(f"Could not find the dt path: {dt} in the context: {demisto.context()}")
return_error(f"Incorrect dt path {dt}: no ids found in the context: {demisto.context()}")
demisto.results("Warning: no ids matching the dt condition were found.\nVerify that the condition is correct and "
"that all ids have finished running.")

Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Common Scripts",
"description": "Frequently used scripts pack.",
"support": "xsoar",
"currentVersion": "1.12.1",
"currentVersion": "1.12.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 08771a0

Please sign in to comment.