← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~smoser/cloud-init:feature/integration-execute-with-string into cloud-init:master

 

The proposal to merge ~smoser/cloud-init:feature/integration-execute-with-string into cloud-init:master has been updated.

Commit Message changed to:

tests: execute: support command as a string, change default env parm.

If a string is passed to execute, then invoke 'sh', '-c', 'string'.
That allows the less verbose execution of simple commands:
  image.execute("ls /run")
compared to the more explicit but longer winded:
  image.execute(["ls", "/run"])

If 'env' was ever modified in execute or a method that it called,
then the next invocation's default value would be changed.  Instead
use None and then set to a new empty dict in the method.

For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/330459
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:feature/integration-execute-with-string into cloud-init:master.


Follow ups