cli2 4.2.4__tar.gz → 4.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cli2-4.2.4/cli2.egg-info → cli2-4.2.6}/PKG-INFO +1 -1
- {cli2-4.2.4 → cli2-4.2.6}/cli2/ansible/action.py +3 -2
- {cli2-4.2.4 → cli2-4.2.6}/cli2/client.py +4 -0
- {cli2-4.2.4 → cli2-4.2.6/cli2.egg-info}/PKG-INFO +1 -1
- {cli2-4.2.4 → cli2-4.2.6}/setup.py +1 -1
- {cli2-4.2.4 → cli2-4.2.6}/MANIFEST.in +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/README.rst +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/classifiers.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/__init__.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/ansible/__init__.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/ansible/playbook.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/ansible/variables.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/asyncio.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/cli.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/cli2.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/colors.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/configuration.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/decorators.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/display.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/__init__.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/client.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/conf.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/example.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/example_obj.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/nesting.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/obj.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/obj2.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/examples/test.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/lock.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/log.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/node.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/sphinx.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/table.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2/test.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2.egg-info/SOURCES.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2.egg-info/dependency_links.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2.egg-info/entry_points.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2.egg-info/requires.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/cli2.egg-info/top_level.txt +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/setup.cfg +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_ansible.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_ansible_variables.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_asyncio.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_cli.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_client.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_command.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_configuration.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_decorators.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_display.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_entry_point.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_group.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_inject.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_lock.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_node.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_restful.py +0 -0
- {cli2-4.2.4 → cli2-4.2.6}/tests/test_table.py +0 -0
|
@@ -165,6 +165,9 @@ class ActionBase(ActionBase):
|
|
|
165
165
|
except Exception as exc:
|
|
166
166
|
self.result['failed'] = True
|
|
167
167
|
|
|
168
|
+
if self.verbosity:
|
|
169
|
+
traceback.print_exc()
|
|
170
|
+
|
|
168
171
|
if isinstance(exc, AnsibleError):
|
|
169
172
|
self.result['error'] = exc.message
|
|
170
173
|
elif isinstance(exc, cli2.ResponseError):
|
|
@@ -179,8 +182,6 @@ class ActionBase(ActionBase):
|
|
|
179
182
|
key, value = self.client.request_log_data(exc.request)
|
|
180
183
|
if key:
|
|
181
184
|
self.result[f'request_{key}'] = value
|
|
182
|
-
elif self.verbosity:
|
|
183
|
-
traceback.print_exc()
|
|
184
185
|
|
|
185
186
|
# for pytest to raise
|
|
186
187
|
self.exc = exc
|
|
@@ -1770,6 +1770,10 @@ class Client(metaclass=ClientMetaclass):
|
|
|
1770
1770
|
kwargs[key] = yaml.safe_load(fh.read())
|
|
1771
1771
|
return await self.request(method, url, *args, **kwargs)
|
|
1772
1772
|
|
|
1773
|
+
async def patch(self, url, *args, **kwargs):
|
|
1774
|
+
""" PATCH Request """
|
|
1775
|
+
return await self.request('PATCH', url, *args, **kwargs)
|
|
1776
|
+
|
|
1773
1777
|
async def post(self, url, *args, **kwargs):
|
|
1774
1778
|
""" POST Request """
|
|
1775
1779
|
return await self.request('POST', url, *args, **kwargs)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|