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

clean up import * at common-services level

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0, 2.2.1
    • 3.0.0
    • ambari-agent, ambari-server
    • None

    Description

      Python code at at common-services level used generic imports form resource_management (from resource_management import *)
      Ideally, for easier code tracking and performance, these import should be more specific, such as:
      from resource_management.libraries.script.script import Script
      from resource_management.core.resources.system import Directory

      This JIRA and subtasks will clean up import * from resource_management and replace it for specific imports

      Attachments

        Activity

          People

            jmarron Juanjo Marron
            jmarron Juanjo Marron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: