Merge lp:~free.ekanayaka/landscape-client/config-failure into lp:~landscape/landscape-client/trunk
Proposed by
Free Ekanayaka
Status: | Merged |
---|---|
Merged at revision: | 246 |
Proposed branch: | lp:~free.ekanayaka/landscape-client/config-failure |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
307 lines (+31/-104) 6 files modified
landscape/broker/client.py (+3/-1) landscape/broker/server.py (+0/-15) landscape/broker/tests/test_client.py (+2/-1) landscape/broker/tests/test_server.py (+0/-55) landscape/configuration.py (+8/-9) landscape/tests/test_configuration.py (+18/-23) |
To merge this branch: | bzr merge lp:~free.ekanayaka/landscape-client/config-failure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Muharem Hrnjadovic (community) | Approve | ||
Sidnei da Silva (community) | Approve | ||
Kevin McDermott | Pending | ||
Review via email: mp+24889@code.launchpad.net |
Description of the change
A slightly tricky change, apparently it's not possible to call sys.exit inside a running callback, so I simply changed it to run after reactor.run() returns.
To post a comment you must log in.
[1] I'm a little bit worried about a scoping problem with 'exit_with_error' being assigned a value *after* the 'got_error' function is defined. It might be just because scoping is trickier in Javascript. I would just move the assignment before the function or pass the variable as an argument to the function instead.
[2] The setup() function has a similar code path. I suspect it can stay as it is because it's not used as a callback? Just for clarification.
Other than that, looks good. +1.