[
https://issues.apache.org/jira/browse/AMBARI-25961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Himanshu Maurya updated AMBARI-25961:
-------------------------------------
Description:
In file ambari-server.py at line 1030 we are directly assigning sys.argv[1]
without checking len of sys.argv due to which it is throwing
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 1078, in <module>
mainBody()
File "/usr/sbin/ambari-server.py", line 1030, in mainBody
action = sys.argv[1]
IndexError: list index out of range
was:In file
> Fix for IndexError in ambari-server.py
> ---------------------------------------
>
> Key: AMBARI-25961
> URL: https://issues.apache.org/jira/browse/AMBARI-25961
> Project: Ambari
> Issue Type: Improvement
> Reporter: Himanshu Maurya
> Priority: Major
>
> In file ambari-server.py at line 1030 we are directly assigning sys.argv[1]
> without checking len of sys.argv due to which it is throwing
> Traceback (most recent call last):
> File "/usr/sbin/ambari-server.py", line 1078, in <module>
> mainBody()
> File "/usr/sbin/ambari-server.py", line 1030, in mainBody
> action = sys.argv[1]
> IndexError: list index out of range
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]