mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
remove os_ prefix from detect json syntax
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
52b65117c1
commit
1076dcbd52
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue