Skip to content

Commit

Permalink
create a copy of repo data as create data
Browse files Browse the repository at this point in the history
  • Loading branch information
almenscorner committed Mar 20, 2024
1 parent de7123f commit 00fb248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IntuneCD/update/Intune/WindowsDriverUpdates.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def main(self) -> dict[str, any]:
}
self.name = repo_data.get("displayName")
diff_data = self.create_diff_data(self.name, self.config_type)
create_data = repo_data.copy()
self.get_pop_keys(
repo_data,
[
Expand All @@ -75,6 +76,7 @@ def main(self) -> dict[str, any]:
method="patch",
status_code=200,
config_endpoint=self.CONFIG_ENDPOINT,
create_data=create_data,
)
except Exception as e:
self.log(
Expand Down
2 changes: 2 additions & 0 deletions src/IntuneCD/update/Intune/WindowsFeatureUpdates.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def main(self) -> dict[str, any]:
}
self.name = repo_data.get("displayName")
diff_data = self.create_diff_data(self.name, self.config_type)
create_data = repo_data.copy()
self.get_pop_keys(
repo_data,
[
Expand All @@ -73,6 +74,7 @@ def main(self) -> dict[str, any]:
method="patch",
status_code=200,
config_endpoint=self.CONFIG_ENDPOINT,
create_data=create_data,
)
except Exception as e:
self.log(
Expand Down

0 comments on commit 00fb248

Please sign in to comment.