~smoser/ubuntu/quantal/cloud-init/sru

« back to all changes in this revision

Viewing changes to cloudinit/CloudConfig/cc_mcollective.py

  • Committer: Scott Moser
  • Date: 2012-01-12 16:33:53 UTC
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: smoser@ubuntu.com-20120112163353-nip749m6ytls8sva
Tags: upstream-0.6.3~bzr502
ImportĀ upstreamĀ versionĀ 0.6.3~bzr502

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#
17
17
#    You should have received a copy of the GNU General Public License
18
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 
19
20
import os
20
 
import pwd
21
 
import socket
22
21
import subprocess
23
 
import fileinput
24
22
import StringIO
25
23
import ConfigParser
26
24
import cloudinit.CloudConfig as cc
40
38
            finally: self.sechead = None
41
39
        else: return self.fp.readline()
42
40
 
43
 
def handle(name,cfg,cloud,log,args):
 
41
def handle(_name,cfg,_cloud,_log,_args):
44
42
    # If there isn't a mcollective key in the configuration don't do anything
45
43
    if not cfg.has_key('mcollective'): return
46
44
    mcollective_cfg = cfg['mcollective']