mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
fix indentation
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
This commit is contained in:
parent
41978b4bc7
commit
933d7f14ac
1 changed files with 18 additions and 18 deletions
|
@ -47,17 +47,17 @@ module Inspec::Resources
|
|||
def linux_hostname(opt = nil)
|
||||
if !opt.nil?
|
||||
opt = case opt
|
||||
when "f", "long", "fqdn", "full"
|
||||
" -f"
|
||||
when "d", "domain"
|
||||
" -d"
|
||||
when "i", "ip_address"
|
||||
" -I"
|
||||
when "s", "short"
|
||||
" -s"
|
||||
else
|
||||
"ERROR"
|
||||
end
|
||||
when "f", "long", "fqdn", "full"
|
||||
" -f"
|
||||
when "d", "domain"
|
||||
" -d"
|
||||
when "i", "ip_address"
|
||||
" -I"
|
||||
when "s", "short"
|
||||
" -s"
|
||||
else
|
||||
"ERROR"
|
||||
end
|
||||
end
|
||||
if opt == "ERROR"
|
||||
skip_resource "The `sys_info.hostname` resource is not supported with that option on your OS."
|
||||
|
@ -69,13 +69,13 @@ module Inspec::Resources
|
|||
def mac_hostname(opt = nil)
|
||||
if !opt.nil?
|
||||
opt = case opt
|
||||
when "f", "long", "fqdn", "full"
|
||||
" -f"
|
||||
when "s", "short"
|
||||
" -s"
|
||||
else
|
||||
"ERROR"
|
||||
end
|
||||
when "f", "long", "fqdn", "full"
|
||||
" -f"
|
||||
when "s", "short"
|
||||
" -s"
|
||||
else
|
||||
"ERROR"
|
||||
end
|
||||
end
|
||||
if opt == "ERROR"
|
||||
skip_resource "The `sys_info.hostname` resource is not supported with that option on your OS."
|
||||
|
|
Loading…
Reference in a new issue