~jbauer/cloud-init/salt

« back to all changes in this revision

Viewing changes to cloudinit/DataSourceOVF.py

  • Committer: Scott Moser
  • Date: 2012-01-17 19:57:45 UTC
  • Revision ID: smoser@ubuntu.com-20120117195745-bs13km80373nq0z6
remove some pylint line disablings

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        else:
66
66
            np = {'iso': transport_iso9660,
67
67
                  'vmware-guestd': transport_vmware_guestd, }
 
68
            name = None
68
69
            for name, transfunc in np.iteritems():
69
70
                (contents, _dev, _fname) = transfunc()
70
71
                if contents:
73
74
            if contents:
74
75
                (md, ud, cfg) = read_ovf_environment(contents)
75
76
                self.environment = contents
76
 
                found.append(name)  # pylint: disable=W0631
 
77
                found.append(name)
77
78
 
78
79
        # There was no OVF transports found
79
80
        if len(found) == 0:
247
248
 
248
249
 
249
250
def transport_vmware_guestd():
250
 
    # pylint: disable=C0301
251
 
    # http://blogs.vmware.com/vapp/2009/07/selfconfiguration-and-the-ovf-environment.html
 
251
    # http://blogs.vmware.com/vapp/2009/07/ \
 
252
    #    selfconfiguration-and-the-ovf-environment.html
252
253
    # try:
253
254
    #     cmd = ['vmware-guestd', '--cmd', 'info-get guestinfo.ovfEnv']
254
255
    #     (out, err) = subp(cmd)
257
258
    #     # would need to error check here and see why this failed
258
259
    #     # to know if log/error should be raised
259
260
    #     return(False, None, None)
260
 
    # pylint: enable=C0301
261
261
    return(False, None, None)
262
262
 
263
263