Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-brun committed Jun 4, 2024
1 parent 3887029 commit e43d2e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions adapters/vnfm_generic/polld/vnfm_generic_poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function get_token($SIGNIN_REQ_PATH, $data, $auth_mode)

debug_dump($http_data, "get_token() http_data\n");


$url = $SIGNIN_REQ_PATH;
debug_dump($url, "get_token() url\n");

Expand All @@ -82,8 +81,8 @@ function get_token($SIGNIN_REQ_PATH, $data, $auth_mode)
curl_setopt($ch, CURLOPT_POSTFIELDS, $http_data);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
if($auth_mode == 'keystone'){
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json'));
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
}

$ret = curl_exec($ch);
Expand Down

0 comments on commit e43d2e8

Please sign in to comment.