commit | 79241fa719c0cbcbcb66f2a79ed8ec95de7e6697 | [log] [tgz] |
---|---|---|
author | mcp-jenkins <mcp-jenkins@mirantis.com> | Fri May 15 10:34:49 2020 +0000 |
committer | Gerrit Code Review <mail@domain.com> | Fri May 15 10:34:49 2020 +0000 |
tree | 67444549597696292cc019566981e9298837feba | |
parent | 9d1b71ac89b44957e4aea241d37adc2c3bd9f3fd [diff] | |
parent | 984f616a996fd69ea2a3f48a470133f5b1e97718 [diff] |
Merge "Check if the test flag is set"
diff --git a/_states/neutronv2.py b/_states/neutronv2.py index 7bfa7fb..85e9c3c 100644 --- a/_states/neutronv2.py +++ b/_states/neutronv2.py
@@ -9,6 +9,9 @@ def _neutronv2_call(fname, *args, **kwargs): + if __opts__.get('test') and not any(x for x in ['_get_', '_list'] if x in fname): + return {'changes': 'neutronv2 state {} to be called with {} {}'.format( + fname, args, kwargs), 'result': None} return __salt__['neutronv2.{}'.format(fname)](*args, **kwargs)