diff --git a/createReport.py b/createReport.py index 797d17a..b83f823 100644 --- a/createReport.py +++ b/createReport.py @@ -61,7 +61,7 @@ def GatherReportingInfo(DTAPIToken, DTENV,friendlyName): msidtagval = next((tag for tag in entity["tags"] if tag["stringRepresentation"].startswith('[Kubernetes]ms-id')), None) row={'AppId':appidtagval["value"],'AppName':appnametagval["value"],'CompassId':compassidtagval["value"],'MsId':msidtagval["value"],'ServiceName':entity['displayName'],'ServiceId':entity['entityId']} for kubetag in entity["tags"]: - if(kubetag["key"].startsWith("app.bmwgroup.com/")): + if(kubetag["key"].startswith("app.bmwgroup.com/")): row.update({kubetag["key"]:kubetag["value"]}) mgmt = mgmt.append(row,ignore_index=True) mgmt.to_csv(friendlyName + '_TaggedEntities_' + strnow +'.csv',encoding='utf-8')