Merge lp://staging/~andreserl/maas/fix_ipmi_lp1234880_trunk into lp://staging/~maas-committers/maas/trunk
Proposed by
Andres Rodriguez
Status: | Merged |
---|---|
Approved by: | Andres Rodriguez |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1726 |
Proposed branch: | lp://staging/~andreserl/maas/fix_ipmi_lp1234880_trunk |
Merge into: | lp://staging/~maas-committers/maas/trunk |
Diff against target: |
77 lines (+23/-9) 2 files modified
etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py (+20/-7) etc/maas/templates/commissioning-user-data/snippets/maas_signal.py (+3/-2) |
To merge this branch: | bzr merge lp://staging/~andreserl/maas/fix_ipmi_lp1234880_trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email:
|
Commit message
Fix ipmi version autodetection
To post a comment you must log in.
30 +def get_ipmi_version(): getstatusoutput ('ipmi- locate' ) search( output)
31 + (status, output) = commands.
32 + show_re = re.compile('(IPMI\ Version:) (\d\.\d)')
33 + res = show_re.
34 + return res.group(2)
If getstatusoutput fails or ipmi-locate fails to find anything here, then the "res" object is None and you'll blow up calling group(2).