in chef/cookbooks/cpe_workspaceone/libraries/hubcli.rb [93:118]
def _get_available_ws1_profiles_list
attributes = {}
if macos?
cmd = hubcli_execute(
'profiles --list --json',
)
end
if cmd.exitstatus.zero?
if macos?
attributes = Chef::JSONCompat.parse(cmd.stdout.to_s)
end
else
return attributes
end
return {} if attributes.empty?
if macos?
attributes['os_version'] = node['platform_version']
end
attributes
end