You can still dump in json. We have an existing yaml load/read that does
exactly what you want.
On Tue, Jan 5, 2016 at 1:46 PM, Scott Moser <email address hidden> wrote:
>
>
> Diff comments:
>
> > === modified file 'curtin/url_helper.py'
> > --- curtin/url_helper.py 2016-01-04 18:03:45 +0000
> > +++ curtin/url_helper.py 2016-01-05 18:06:23 +0000
> > @@ -160,7 +160,7 @@
> > def read_skew_file(self):
> > if self.skew_data_file and os.path.isfile(self.skew_data_file):
> > with open(self.skew_data_file, mode="r") as fp:
> > - return json.load(fp.read())
> > + return json.load(fp)
> > return None
> >
>
> since we author and consume, i'd prefer json. json is more a machine
> format. also as it is right now, url_helper is very stand alone. it doesnt
> depend on any other curtin things.
>
> > def update_skew_file(self, host, value):
>
>
> --
> https://code.launchpad.net/~smoser/curtin/trunk.lp1520400/+merge/281682
> Your team curtin developers is requested to review the proposed merge of
> lp:~smoser/curtin/trunk.lp1520400 into lp:curtin.
>
You can still dump in json. We have an existing yaml load/read that does
exactly what you want.
On Tue, Jan 5, 2016 at 1:46 PM, Scott Moser <email address hidden> wrote:
> url_helper. py' url_helper. py 2016-01-04 18:03:45 +0000 url_helper. py 2016-01-05 18:06:23 +0000 file(self) : isfile( self.skew_ data_file) : skew_data_ file, mode="r") as fp: fp.read( )) skew_file( self, host, value): /code.launchpad .net/~smoser/ curtin/ trunk.lp1520400 /+merge/ 281682
>
> Diff comments:
>
> > === modified file 'curtin/
> > --- curtin/
> > +++ curtin/
> > @@ -160,7 +160,7 @@
> > def read_skew_
> > if self.skew_data_file and os.path.
> > with open(self.
> > - return json.load(
> > + return json.load(fp)
> > return None
> >
>
> since we author and consume, i'd prefer json. json is more a machine
> format. also as it is right now, url_helper is very stand alone. it doesnt
> depend on any other curtin things.
>
> > def update_
>
>
> --
> https:/
> Your team curtin developers is requested to review the proposed merge of
> lp:~smoser/curtin/trunk.lp1520400 into lp:curtin.
>