Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-1099

shelldocs --lint option fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • ShellDocs
    • None

    Description

      shelldocs --lint options fails:

      hadoop-mirror git:(HADOOP-16747) ✗ ./dev-support/bin/shelldocs --lint -i ./hadoop-common-project/hadoop-common/src/main/bin/start-all.sh  
      Traceback (most recent call last):
        File "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py", line 477, in <module>
          main()
        File "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py", line 468, in main
          message = funcs.lint()
        File "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py", line 273, in lint
          value = getfuncs[attr]()
      TypeError: 'str' object is not callable
      

      Here the result of "getfuncs[attr]" is "self.replacetext" and its type is "str" or "NoneType". These types cannot call "()" and that's why the error occurs.

      Attachments

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              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 - 2.5h
                  2.5h