~rlane/nova/lp773690

« back to all changes in this revision

Viewing changes to tools/esx/guest_tool.py

  • Committer: rlane at wikimedia
  • Date: 2011-04-29 22:30:40 UTC
  • mfrom: (382.1.655 nova)
  • Revision ID: rlane@wikimedia.org-20110429223040-i0x3ds9eqwrabyru
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
    obj = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
210
210
        stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
211
211
    result = None
212
 
    if process_input != None:
 
212
    if process_input is not None:
213
213
        result = obj.communicate(process_input)
214
214
    else:
215
215
        result = obj.communicate()