Skip to content

Commit

Permalink
Return a value if a package uploaded to JSS
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c9b757)
  • Loading branch information
doschupp authored and mosen committed Jul 28, 2018
1 parent 0725f34 commit 8c6d9d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions JSSImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ def summarize(self):
"summary_text": "The following changes were made to the JSS:",
"report_fields": [
"Name", "Package", "Categories", "Groups", "Scripts",
"Extension_Attributes", "Policy", "Icon", "Version"],
"Extension_Attributes", "Policy", "Icon", "Version",
"Package_Uploaded"],
"data": {
"Name": "",
"Package": "",
Expand All @@ -665,7 +666,8 @@ def summarize(self):
"Extension_Attributes": "",
"Policy": "",
"Icon": "",
"Version": ""
"Version": "",
"Package_Uploaded": ""
}
}
# TODO: This is silly. Use a defaultdict for storing changes
Expand Down Expand Up @@ -710,6 +712,10 @@ def summarize(self):
if extattrs:
data["Extension_Attributes"] = self.get_report_string(extattrs)

jss_package_uploaded = self.get_report_string(changes["jss_repo_updated"])
if jss_package_uploaded:
data["Package_Uploaded"] = "True"

def update_object(self, data, obj, path, update):
"""Update an object if it differs.
Expand Down

0 comments on commit 8c6d9d6

Please sign in to comment.