mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
13 lines
192 B
Python
13 lines
192 B
Python
import sys
|
|
|
|
import salt.utils.data
|
|
|
|
user_arg = sys.argv
|
|
|
|
if user_arg[1] == "raise":
|
|
raise Exception("test")
|
|
|
|
if salt.utils.data.is_true(user_arg[1]):
|
|
sys.exit(0)
|
|
else:
|
|
sys.exit(1)
|