(self, parsed_args, parsed_globals)
| 62 | ] |
| 63 | |
| 64 | def _run_main(self, parsed_args, parsed_globals): |
| 65 | params = parsed_args |
| 66 | params.session = self._session |
| 67 | validate_region(params, parsed_globals) |
| 68 | validate_instance(params) |
| 69 | params.system.validate_administrator() |
| 70 | self._validate_override_config(params) |
| 71 | self._validate_agent_installer(params) |
| 72 | |
| 73 | try: |
| 74 | self._create_config(params) |
| 75 | self._install_agent(params) |
| 76 | except Exception as e: |
| 77 | sys.stdout.flush() |
| 78 | sys.stderr.write( |
| 79 | 'ERROR\n' |
| 80 | f'{e}\n' |
| 81 | 'Install the AWS CodeDeploy Agent on the on-premises instance ' |
| 82 | 'by following the instructions in "Configure Existing ' |
| 83 | 'On-Premises Instances by Using AWS CodeDeploy" in the AWS ' |
| 84 | 'CodeDeploy User Guide.\n' |
| 85 | ) |
| 86 | return 255 |
| 87 | return 0 |
| 88 | |
| 89 | def _validate_override_config(self, params): |
| 90 | if ( |
nothing calls this directly
no test coverage detected