summaryrefslogtreecommitdiff
path: root/cloudinit/subp.py
Commit message (Collapse)AuthorAgeFilesLines
* Return a namedtuple from subp() (#1376)Brett Holman2022-04-121-3/+6
| | | | | | This provides a minor readability improvement. subp.subp(cmd)[0] -> subp.subp(cmd).stdout subp.subp(cmd)[1] -> subp.subp(cmd).stderr
* Adopt Black and isort (SC-700) (#1157)James Falcon2021-12-151-62/+103
| | | | | Applied Black and isort, fixed any linting issues, updated tox.ini and CI.
* bddeb: new --packaging-branch argument to pull packaging from branch (#576)Paride Legovini2020-10-191-2/+4
| | | | | | | | | bddeb builds a .deb package using the template packaging files in packages/debian/. The new --packaging-branch flag allows to specify a git branch where to pull the packaging (i.e. the debian/ directory) from. This is useful to build a .deb package from master with the very same packaging which is used for the uploads.
* tox: bump the pylint version to 2.6.0 in the default run (#544)Paride Legovini2020-08-251-1/+2
| | | | | | Changes: tox: bump the pylint version to 2.6.0 in the default run Fix pylint 2.6.0 W0707 warnings (raise-missing-from)
* Move runparts to subp. (#420)Scott Moser2020-06-081-0/+32
| | | | | | runparts (run a directory of scripts) seems to fit well in subp module. The request to move it there was raised in #416. Replace use of logexc with LOG.debug as logexc comes from util.
* Move subp into its own module. (#416)Scott Moser2020-06-081-2/+299
| | | | | | | | | | | | | | | | | This was painful, but it finishes a TODO from cloudinit/subp.py. It moves the following from util to subp: ProcessExecutionError subp which target_path I moved subp_blob_in_tempfile into cc_chef, which is its only caller. That saved us from having to deal with it using write_file and temp_utils from subp (which does not import any cloudinit things now). It is arguable that 'target_path' could be moved to a 'path_utils' or something, but in order to use it from subp and also from utils, we had to get it out of utils.
* ubuntu-advantage: Add new config module to support ubuntu-advantage-toolsChad Smith2018-03-221-0/+57
ubuntu-advantage-tools is a package for enabling and disabling extended support services such as Extended Security Maintenance (ESM), Canonical Livepatch and FIPS certified PPAs. Simplify Ubuntu Advantage setup on machines by allowing users to provide a list of ubuntu-advantage commands in cloud-config.