1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'functions/get_account.pp', line 1
function abi::get_account(
Optional[Hash] $params = {}
) {
$account_id = $params['account_id'] ? { undef => undef, default => $params['account_id'] }
$account_title = $params['account_title'] ? { undef => undef, default => $params['account_title'] }
$account_name = $params['account_name'] ? { undef => undef, default => $params['account_name'] }
$account_type = $params['account_type'] ? { undef => undef, default => $params['account_type'] }
$ticket_id = $params['ticket_id'] ? { undef => undef, default => $params['ticket_id'] }
$reason = $params['reason'] ? { undef => undef, default => $params['reason'] }
$server_url = $abi::conf::server_url
$authtoken = $abi::conf::authtoken
$org = $abi::conf::org
$certificate = $abi::conf::certificate
$account_data = get_account(
$server_url,
$authtoken,
$org,
$certificate,
$account_id,
$account_title,
$account_name,
$account_type,
$ticket_id,
$reason,
)
return $account_data
}
|