Merge lp:~gocept/landscape-client/bytes-versioning into lp:~landscape/landscape-client/trunk
Proposed by
Steffen Allner
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 964 |
Merged at revision: | 964 |
Proposed branch: | lp:~gocept/landscape-client/bytes-versioning |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
119 lines (+23/-16) 4 files modified
landscape/__init__.py (+3/-3) landscape/broker/exchange.py (+1/-1) landscape/lib/tests/test_versioning.py (+5/-5) landscape/lib/versioning.py (+14/-7) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/bytes-versioning |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Havlik (community) | Approve | ||
Данило Шеган (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email:
|
Commit message
Only allow bytestrings in landscape.
Description of the change
To consistently compare software versions, the helper method now only accepts bytes, as the version can come from a message which in turn results from a bpickled stream. To ensure backward compatibility to Python 2.7 versions of the landscape-server we have to keep them as bytes.
The constants defined throughout the project had to be adapted.
To post a comment you must log in.
Command: TRIAL_ARGS=-j4 make check /ci.lscape. net/job/ latch-test- xenial/ 3642/
Result: Success
Revno: 964
Branch: lp:~gocept/landscape-client/bytes-versioning
Jenkins: https:/