Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25961

Fix for IndexError in ambari-server.py

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.8
    • None
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              hmaurya Himanshu Maurya
              hmaurya Himanshu Maurya
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h