Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
test_validate_administrator_throws
Method · 0.45
test_validate_administrator_throws
Method · 0.45
_run_main
Method · 0.45
_run_main
Method · 0.45
Calls
no outgoing calls
Tested by
2
test_validate_administrator_throws
Method · 0.36
test_validate_administrator_throws
Method · 0.36