Go to file
Sean Dague de46354ed3 new localrc set strategy
the localrc is really just executable shell, which means there are
tons of edgecases where you can't treat it the same as simple
assignment a=b.

Instead of trying to be smart about things and reduce duplication in
the localrc files, just do the naive thing and stack up all the shell
declarations in order. When evaluated in shell they will end up
stacking up as expected.

Change-Id: I231d130b24b02cdd79618f85472cee21905884e0
2017-02-10 16:57:34 -05:00
2017-02-10 16:57:34 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00
2017-01-19 16:25:51 -05:00
2017-01-16 08:06:54 -05:00
2017-01-16 08:06:54 -05:00

devstack-tools

Devstack Helper Tools in Python

This is a set of cli tools for supporting devstack. It moves some of the complexity out of bash and into python where it's easier to have comprehensive testing of behavior.

Currently this includes the dsconf tool, which provides a cli for manipulating local.conf and ini files.

usage: dsconf [-h]
            {iniset,inicomment,iniuncomment,inirm,extract-localrc,extract,setlc,setlc_raw,setlc_conf,merge_lc}
            ...

optional arguments:
  -h, --help            show this help message and exit

commands:
  {iniset,inicomment,iniuncomment,inirm,extract-localrc,extract,setlc,setlc_raw,setlc_conf,merge_lc}
                      sub-command help
  iniset              set item in ini file
  inicomment          comment item in ini file
  iniuncomment        uncomment item in ini file
  inirm               delete item from ini file
  extract-localrc     extract localrc from local.conf
  extract             extract and merge config from local.conf
  setlc               set variable in localrc of local.conf
  setlc_raw           set raw line at the end of localrc in local.conf
  setlc_conf          set variable in ini section of local.conf
  merge_lc            merge local.conf files

Features

  • TODO
Description
DevStack supporting tools in python
Readme 399 KiB
Languages
Python 100%