code: def run_module_command(cmd_list, env_vars, exit_on_error=True):
      
      if exit_on_error:
          try:
              subprocess.check_call(cmd_list, env=env_vars)
          except subprocess.CalledProcessError as shelloutexc:
              sys.exit(shelloutexc.returncode)
      else:
          subprocess.check_call(cmd_list, env=env_vars)
docs: Shell out to provisioner command.