Skip to content

Commit

Permalink
fix: PR tests. param comma spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankaraffa committed Oct 11, 2024
1 parent b04737b commit 0327901
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ datasource "ds_billing_centers" do
request do
auth $auth_flexera
host rs_optima_host
path join(["/analytics/orgs/",rs_org_id,"/billing_centers"])
path join(["/analytics/orgs/", rs_org_id, "/billing_centers"])
query "view", "allocation_table"
header "Api-Version", "1.0"
header "User-Agent", "RS Policies"
Expand Down Expand Up @@ -731,12 +731,12 @@ define billing_center_create($data, $rs_org_id, $rs_optima_host) do
if $bc["billing_center_index"] == 0 || $bc["billing_center_parent_id"] != null
$parent_href = null
if $bc["billing_center_parent_id"] != null
$parent_href = join(["/analytics/orgs/",$rs_org_id,"/billing_centers/",$bc["billing_center_parent_id"]])
$parent_href = join(["/analytics/orgs/", $rs_org_id, "/billing_centers/", $bc["billing_center_parent_id"]])
end
call log_message(to_s($data_index)+"/"+to_s($data_total)+" Creating billing center: "+$bc["billing_center_name"]+" under parent: "+to_s($parent_href))
$request = {
"auth": $$auth_flexera,
"url": join(["https://",$rs_optima_host,"/analytics/orgs/",$rs_org_id,"/billing_centers"]),
"url": join(["https://", $rs_optima_host, "/analytics/orgs/", $rs_org_id, "/billing_centers"]),
"headers": {"Api-Version": "1.0" },
"body": {
"description": "Billing Center for "+$bc["billing_center_name"],
Expand All @@ -758,7 +758,7 @@ define billing_center_create($data, $rs_org_id, $rs_optima_host) do

# If we encountered any errors, use `raise` to mark the CWF process as errored
if inspect($$errors) != "null"
raise join($$errors,"\n")
raise join($$errors, "\n")
end
end

Expand All @@ -774,7 +774,7 @@ define billing_center_delete($data, $rs_org_id, $rs_optima_host) do
call log_message(to_s($data_index)+"/"+to_s($data_total)+" Starting delete billing center: "+$bc["billing_center_name"]+ "("+$bc["billing_center_id"] + ")" )
$request = {
"auth": $$auth_flexera,
"url": join(["https://",$rs_optima_host,"/analytics/orgs/",$rs_org_id,"/billing_centers/", $bc["billing_center_id"]]),
"url": join(["https://", $rs_optima_host , "/analytics/orgs/", $rs_org_id, "/billing_centers/", $bc["billing_center_id"]]),
"headers": {"Api-Version": "1.0" }
}
$response = http_delete($request)
Expand All @@ -792,7 +792,7 @@ define billing_center_delete($data, $rs_org_id, $rs_optima_host) do

# If we encountered any errors, use `raise` to mark the CWF process as errored
if inspect($$errors) != "null"
raise join($$errors,"\n")
raise join($$errors, "\n")
end
end

Expand Down

0 comments on commit 0327901

Please sign in to comment.