MCPcopy Index your code
hub / github.com/aws/aws-cli / _run_main

Method _run_main

awscli/customizations/codedeploy/uninstall.py:32–53  ·  view source on GitHub ↗
(self, parsed_args, parsed_globals)

Source from the content-addressed store, hash-verified

30 )
31
32 def _run_main(self, parsed_args, parsed_globals):
33 params = parsed_args
34 params.session = self._session
35 validate_region(params, parsed_globals)
36 validate_instance(params)
37 params.system.validate_administrator()
38
39 try:
40 self._uninstall_agent(params)
41 self._delete_config_file(params)
42 except Exception as e:
43 sys.stdout.flush()
44 sys.stderr.write(
45 'ERROR\n'
46 f'{e}\n'
47 'Uninstall the AWS CodeDeploy Agent on the on-premises '
48 'instance by following the instructions in "Configure '
49 'Existing On-Premises Instances by Using AWS CodeDeploy" in '
50 'the AWS CodeDeploy User Guide.\n'
51 )
52 return 255
53 return 0
54
55 def _uninstall_agent(self, params):
56 sys.stdout.write('Uninstalling the AWS CodeDeploy Agent... ')

Callers

nothing calls this directly

Calls 7

_uninstall_agentMethod · 0.95
_delete_config_fileMethod · 0.95
validate_regionFunction · 0.90
validate_instanceFunction · 0.90
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected