Merge lp:~andreserl/maas/lp1570609 into lp:~maas-committers/maas/trunk
Proposed by
Andres Rodriguez
Status: | Rejected |
---|---|
Rejected by: | Mike Pontillo |
Proposed branch: | lp:~andreserl/maas/lp1570609 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
11 lines (+1/-1) 1 file modified
src/provisioningserver/drivers/power/amt.py (+1/-1) |
To merge this branch: | bzr merge lp:~andreserl/maas/lp1570609 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Abstain | ||
Gavin Panella (community) | Needs Fixing | ||
Review via email: mp+291953@code.launchpad.net |
Commit message
Fix AMT when using wsman (LP: #1570609)
To post a comment you must log in.
Unmerged revisions
- 4921. By Andres Rodriguez
-
Fix LP: #1570609
Looks good, though I do have a minor nit. I would suggest changing this line instead:
xmldecl = re.compile( b'<[?]xml\ \s')
to:
xmldecl = re.compile( '<[?]xml\ \s')
Reasoning: there is no need to encode the XML string into bytes if you can just compare it to a string using the regex. (In other words, the .encode() is doing a small amount of unnecessary extra work.)