File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -766,19 +766,15 @@ sub getCurrentUser {
766766
767767 logger($self -> {_debug }, " Entering Engine::getCurrentUser" ,1);
768768
769- if ($self -> {_currentuser } eq ' ' ) {
770-
771- my $operation = " resources/json/delphix/user/current" ;
772- my ($result , $result_fmt ) = $self -> getJSONResult($operation );
773-
774- if (defined ($result -> {status }) && ($result -> {status } eq ' OK' )) {
775- $ret = $result -> {result };
776- $self -> {_currentuser } = $ret -> {name };
777- $self -> {_currentusertype } = $ret -> {userType };
778- } else {
779- print " No data returned for $operation . Try to increase timeout \n " ;
780- }
769+ my $operation = " resources/json/delphix/user/current" ;
770+ my ($result , $result_fmt ) = $self -> getJSONResult($operation );
781771
772+ if (defined ($result -> {status }) && ($result -> {status } eq ' OK' )) {
773+ $ret = $result -> {result };
774+ $self -> {_currentuser } = $ret -> {name };
775+ $self -> {_currentusertype } = $ret -> {userType };
776+ } else {
777+ print " No data returned for $operation . Try to increase timeout \n " ;
782778 }
783779
784780 return $self -> {_currentuser };
You can’t perform that action at this time.
0 commit comments