diff options
author | Artsiom Musin <artyom.musin@gmail.com> | 2022-11-08 15:11:56 +0100 |
---|---|---|
committer | Artsiom Musin <artyom.musin@gmail.com> | 2022-11-08 15:42:25 +0100 |
commit | 9b047c2af6a268af35eee42ea073876d87b59247 (patch) | |
tree | a4ccbd97d81ea89ed38ff70e01cc7232ae7b2f85 /awxkit | |
parent | Make canceling view non-atomic to fix 500 errors with job bursts (#13072) (diff) | |
download | awx-9b047c2af6a268af35eee42ea073876d87b59247.tar.xz awx-9b047c2af6a268af35eee42ea073876d87b59247.zip |
Add multiple assert export for awx cli
Diffstat (limited to 'awxkit')
-rw-r--r-- | awxkit/awxkit/api/pages/api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/awxkit/awxkit/api/pages/api.py b/awxkit/awxkit/api/pages/api.py index cd600d9dc4..c757efdf1f 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -218,6 +218,8 @@ class ApiV2(base.Base): return endpoint.get(id=int(value)) options = self._cache.get_options(endpoint) identifier = next(field for field in options['search_fields'] if field in ('name', 'username', 'hostname')) + if len(value.split(',')) > 0: + identifier += '__in' return endpoint.get(**{identifier: value}, all_pages=True) def export_assets(self, **kwargs): |