remove os_ prefix from detect json syntax

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-23 10:25:05 +02:00
parent 52b65117c1
commit 1076dcbd52
2 changed files with 5 additions and 5 deletions

View file

@ -76,7 +76,7 @@ vulcano detect -t docker://$id
Which will provide you with:
```
{"os_family":"ubuntu","os_release":"14.04","os_arch":null}
{"family":"ubuntu","release":"14.04","arch":null}
```
## Custom resources

View file

@ -6,10 +6,10 @@
# print OS detection infos
conf = {
os_name: os[:name],
os_family: os[:family],
os_release: os[:release],
os_arch: os[:arch],
name: os[:name],
family: os[:family],
release: os[:release],
arch: os[:arch],
}
puts JSON.dump(conf)
exit 0