Fab: detect_ostype() uses uname, can this be changed to use platform.linux_distribution()
Bug #1390303 reported by
Senthilnathan Murugappan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Low
|
Senthilnathan Murugappan |
Bug Description
detect_ostype() looks at uname -a for specific keywords and determines the os type which doesnt work always.
Would it be better to change it to use platform.
>>> platform.
('Ubuntu', '14.04', 'trusty')
>>> platform.
('CentOS', '6.5', 'Final')
To post a comment you must log in.
Reviewed: https:/ /review. opencontrail. org/4361 github. org/Juniper/ contrail- fabric- utils/commit/ 86dd41699752384 cb4d28b81b43a2b 64b520862d
Committed: http://
Submitter: Zuul
Branch: master
commit 86dd41699752384 cb4d28b81b43a2b 64b520862d
Author: msenthil <email address hidden>
Date: Thu Nov 6 23:41:24 2014 -0800
Changing detecting linux distribution type based on 'uname -a' to platform. linux_distribut ion() call
Changed all references of dist string from 'Ubuntu' to 'ubuntu' for uniformity with other distribution references.
Closes-Bug: #1390303
Change-Id: I1eb6ef868b8986 a02e80ac89bf2e9 8b1d761d8db