summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorLorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>2023-11-06 18:03:38 +0100
committerJeff Bradberry <jeff.bradberry@gmail.com>2024-02-07 20:29:30 +0100
commit694d7e98e77c7bd11e57ead6f2ddee43aa34a87c (patch)
tree5946cb01395581feb36bcd306346225cacdea37d /awxkit
parentawxkit: allow to modify api base url (#14835) (diff)
downloadawx-694d7e98e77c7bd11e57ead6f2ddee43aa34a87c.tar.xz
awx-694d7e98e77c7bd11e57ead6f2ddee43aa34a87c.zip
leave $encrypted$ on export
add encrypted removal from import when object not exists
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/awxkit/awxkit/api/pages/api.py b/awxkit/awxkit/api/pages/api.py
index 5b001ae560..4f2434125f 100644
--- a/awxkit/awxkit/api/pages/api.py
+++ b/awxkit/awxkit/api/pages/api.py
@@ -199,7 +199,7 @@ class ApiV2(base.Base):
return None
fields['natural_key'] = natural_key
- return utils.remove_encrypted(fields)
+ return fields
def _export_list(self, endpoint):
post_fields = utils.get_post_fields(endpoint, self._cache)
@@ -280,7 +280,7 @@ class ApiV2(base.Base):
_page = self._cache.get_by_natural_key(value)
post_data[field] = _page['id'] if _page is not None else None
else:
- post_data[field] = value
+ post_data[field] = utils.remove_encrypted(value)
_page = self._cache.get_by_natural_key(asset['natural_key'])
try: