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

Should close file object in security.py

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • trunk
    • None
    • ambari-agent
    • Patch

    Description

      reqSignCrt method opens CSR file with open function but that doesn't close it.
      And, loadSrvrCrt method opens a file but this is unclosed too.
      They waste resources and may cause a problem.

      Attachments

        1. AMBARI-16731.1.patch
          0.9 kB
          Masahiro Tanaka
        2. AMBARI-16371.patch
          0.6 kB
          Masahiro Tanaka

        Issue Links

          Activity

            People

              masatana Masahiro Tanaka
              masatana Masahiro Tanaka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: