chorankates / rouster

Rouster.is_a?('abstraction layer for controlling Vagrant virtual machines') => true
BSD 3-Clause "New" or "Revised" License
109 stars 14 forks source link

fix CentOS/RHEL 7.0 detection #93

Closed chorankates-sfdc closed 8 years ago

chorankates-sfdc commented 8 years ago

reported internally at salesforce:

rouster:compute7: vm running: [sudo ls -l /etc/os-release; echo ec[$?]]
DEBUG rouster:compute7: output: [-rw-r--r--. 1 root root 393 Dec 9 2015 /etc/os-release
]
DEBUG rouster:compute7: determined OS to be[ubuntu] via[/etc/os-release]

the problem is that this is a CentOS 7.0 machine, not Ubuntu/Debian

https://github.com/chorankates/rouster/blob/master/lib/rouster.rb#L515 is the problem