Skip to content

Commit

Permalink
removing unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
SethHollandsworth committed Apr 18, 2023
1 parent cdc3be4 commit 9e841d5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/confcom/azext_confcom/security_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,6 @@ def _add_elements(self, dictionary) -> Dict:

return dictionary

def _convert_to_json(self, dictionary) -> Dict:
# need to make a deep copy so we can change the underlying config data
# dicts
editable = copy.deepcopy(dictionary)
out = {"length": len(editable), "elements": {}}

for i, container in enumerate(editable):
out["elements"][str(i)] = container

self._add_elements(out)

return {config.POLICY_FIELD_CONTAINERS: out}

def validate_cce_policy(self) -> Tuple[bool, Dict]:
"""Utility method: check to see if the existing policy
that instantiates this function would allow the policy created by the input ARM Template"""
Expand Down

0 comments on commit 9e841d5

Please sign in to comment.