Skip to content

Commit 1ccfe16

Browse files
kylelolianhelle
andauthored
Pass true for props into _build_sent_data when calling update_incident (#774)
* Updated _build_sent_data to accept labels as a key for the nested properties object * Changed implementation to pass true for proper parameter inside of update_incident instead of hardcoding "label" key in _built_sent_data * Capitalized true to match keyword argument. * Reformatting line for black --------- Co-authored-by: ianhelle <[email protected]>
1 parent 36bd044 commit 1ccfe16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msticpy/context/azure/sentinel_incidents.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ def update_incident(
249249
update_items["title"] = incident_dets.iloc[0]["properties.title"]
250250
if "status" not in update_items.keys():
251251
update_items["status"] = incident_dets.iloc[0]["properties.status"]
252-
data = _build_sent_data(update_items, etag=incident_dets.iloc[0]["etag"])
252+
data = _build_sent_data(
253+
update_items, props=True, etag=incident_dets.iloc[0]["etag"]
254+
)
253255
response = httpx.put(
254256
incident_url,
255257
headers=get_api_headers(self._token), # type: ignore

0 commit comments

Comments
 (0)