Merge lp:~blake-rouse/maas/is-importing into lp:maas/trunk
Proposed by
Blake Rouse
on 2016-12-06
Status: | Merged |
---|---|
Approved by: | Blake Rouse on 2016-12-06 |
Approved revision: | 5590 |
Merged at revision: | 5591 |
Proposed branch: | lp:~blake-rouse/maas/is-importing |
Merge into: | lp:maas/trunk |
Diff against target: |
43 lines (+16/-0) 2 files modified
src/maasserver/api/boot_resources.py (+6/-0) src/maasserver/api/tests/test_boot_resources.py (+10/-0) |
To merge this branch: | bzr merge lp:~blake-rouse/maas/is-importing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | 2016-12-06 | Approve on 2016-12-06 | |
Review via email:
|
Commit message
Add is_importing call to boot resources API.
To post a comment you must log in.
Brendan Donegan (brendan-donegan) wrote : | # |
I know this is merged, and thanks - but wouldn't it be nicer if this returned JSON? I'll make do in the meantime but writing something like:
if output == 'false':
is just... wrong
Gavin Panella (allenap) wrote : | # |
That is JSON:
>>> import json
>>> json.loads("false")
False
Brendan Donegan (brendan-donegan) wrote : | # |
Oops, thanks
On Wed, 7 Dec 2016 at 10:22 Gavin Panella <email address hidden>
wrote:
> That is JSON:
>
> >>> import json
> >>> json.loads("false")
> False
>
> --
> https:/
> You are subscribed to branch lp:maas.
>
LGTM!