mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Add warning message for K8S deployment
Add warning message for K8S deployment
This commit is contained in:
parent
eeefd19ad3
commit
f2aaa6778c
@ -78,6 +78,10 @@ class AnsibleInventoryLoader(object):
|
||||
bargs.extend(['-e', '{0}={1}'.format(key, value)])
|
||||
ee = get_default_execution_environment()
|
||||
|
||||
if settings.IS_K8S:
|
||||
logger.warn('This command is not able to run on kubernetes-based deployment. This action should be done using the API.')
|
||||
sys.exit(1)
|
||||
|
||||
if ee.credential:
|
||||
process = subprocess.run(['podman', 'image', 'exists', ee.image], capture_output=True)
|
||||
if process.returncode != 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user