Commit 21dd7363 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(WorkflowUpdate) Fix errors from last commit

issue #5745
parent 2379ded7
...@@ -29,7 +29,7 @@ use warnings; ...@@ -29,7 +29,7 @@ use warnings;
use 5.008; use 5.008;
use Argonaut::Libraries::FusionDirectoryWebService qw(argonaut_get_rest_client); use Argonaut::Libraries::FusionDirectoryWebService qw(argonaut_get_rest_client argonaut_parse_rest_error);
use JSON; use JSON;
...@@ -105,12 +105,12 @@ sub argonaut_supann_update_states { ...@@ -105,12 +105,12 @@ sub argonaut_supann_update_states {
if ($updateNeeded) { if ($updateNeeded) {
$client->PUT('/objects/user/'.$dn.'/supannAccountStatus/supannRessourceEtatDate', encode_json($supannRessourceEtatDateNewValues)); $client->PUT('/objects/user/'.$dn.'/supannAccountStatus/supannRessourceEtatDate', encode_json($supannRessourceEtatDateNewValues));
if ($client->responseCode() ne '200') { if ($client->responseCode() ne '200') {
die('Request to REST API failed: '.$client->responseCode().' - '.argonaut_parse_rest_error($client)); die('Request to REST API failed: '.$client->responseCode().' - '.argonaut_parse_rest_error($client)."\n");
} }
} }
} }
} else { } else {
die('Request to REST API failed: '.$client->responseCode().' - '.argonaut_parse_rest_error($client)); die('Request to REST API failed: '.$client->responseCode().' - '.argonaut_parse_rest_error($client)."\n");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment