refactored cli module to use if-else and print output and exit on success in one place
refactored cli module to use if-else and print output and exit on success in one place

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt