Skip to content

OXT-796: xenmgr: Match multi-strings in dmi chassis type.#130

Merged
jean-edouard merged 1 commit intoOpenXT:masterfrom
eric-ch:oxt-796
Nov 6, 2018
Merged

OXT-796: xenmgr: Match multi-strings in dmi chassis type.#130
jean-edouard merged 1 commit intoOpenXT:masterfrom
eric-ch:oxt-796

Conversation

@eric-ch
Copy link
Copy Markdown
Contributor

@eric-ch eric-ch commented Nov 5, 2018

dmidecode may return more than one type, e.g:

root@e7470:~# dmidecode -s chassis-type
Laptop
Docking Station

A docked laptop is still a laptop.
Use a list of keywords and check every line for a match.

dmidecode may return more than one type, e.g:
root@e7470:~# dmidecode -s chassis-type
Laptop
Docking Station

A docked laptop is still a laptop.
Use a list of keywords and check every line for a match.

Signed-off-by: Eric Chanudet <chanudete@ainfosec.com>

OXT-796
@eric-ch
Copy link
Copy Markdown
Contributor Author

eric-ch commented Nov 6, 2018

v2:

  • elem has an infix notation, use it instead of flip.

@jean-edouard
Copy link
Copy Markdown
Member

LGTM, please PR against stable-8 as well.

@eric-ch
Copy link
Copy Markdown
Contributor Author

eric-ch commented Nov 6, 2018

Stable-8 PR: #131

@jean-edouard
Copy link
Copy Markdown
Member

LGTM, merging soon.

@jean-edouard jean-edouard merged commit 2e88dcf into OpenXT:master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants