Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-749

Redundant and unused variables in puppet3-agent/init.sh

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • FUTURE
    • Puppet
    • None

    Description

      Following variables seem to be unused after declaration.

      Line 38: PUPPETD=`which puppet` is declared and used subsequently in PUPPETAGENT and COMMAND. However when actually running the puppet agent at line 126 PUPPET is declared again and used to construct the puppet agent command.

      The method read_master() is also not used in the script.

      These can be removed for clarity since they are declared again when puppet agent command is actually used.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chamilad Chamila de Alwis

            Dates

              Created:
              Updated:

              Slack

                Issue deployment