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

Method validate_administrator

awscli/customizations/codedeploy/systems.py:167–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 INSTALLER = 'install'
166
167 def validate_administrator(self):
168 if os.geteuid() != 0:
169 raise RuntimeError('You must run this command as sudo.')
170
171 def install(self, params):
172 if 'installer' in params:

Callers 4

_run_mainMethod · 0.45
_run_mainMethod · 0.45

Calls

no outgoing calls