Hi Ian, I agree with your plan. I¹ve +1ed the first two patches.
I responded to your comments on [3]. Basically I think that iniadd_literal is necessary. In addition, [3] will also keep the original order of items. With all of the three patches, I think the end result would be that it¹s almost exact copy from local.conf to the destination config file. ‹Robert On 10/6/14, 9:38 PM, "Ian Wienand" <iwien...@redhat.com> wrote: >Hi, > >Rather than adding more MAGIC_VARIABLE="foo" variables to devstack >that really only add lines to config files, I've been asking people to >add them to local.conf and provide additional corresponding >documentation if required. > >However increased use has exposed some issues, now covered by several >reviews. There seem to be three issues: > > 1. preservation of quotes > 2. splitting of arguments with an '=' in them > 3. multi-line support > >We have several reviews not dependent on each other but which will all >conflict. If we agree, I think we should > > 1. merge [1] to handle quotes > 2. merge [2] to handle '='s > 3. extract just multi-line support from [3] > >All include test-cases, which should increase confidence > >-- > >I did consider re-implementing a python tool to handle this; there >were some things that made me think twice. Firstly ini settings in >local.conf are expected to expand shell-vars (path to neutron plugin >configs, etc) so you end up shelling out anyway. Secondly >ConfigParser doesn't like "[[foo]]" as a section name (drops the >trailing ], maybe a bug) so you have to start playing games there. >Using a non-standard library (oslo.config) would be a big change to >devstack's current usage of dependencies. > >-i > >[1] https://review.openstack.org/124227 >[2] https://review.openstack.org/124467/ >[3] https://review.openstack.org/124502 _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev