File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
module/Client/src/Client/Controller Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -79,19 +79,16 @@ public function bootstrapSingleServerAction($args)
7979
8080 $ response = $ this ->sendApiRequest ($ args );
8181 $ data = $ response ->responseData ->bootstrap ;
82- $ content = '' ;
83- if (sprintf ('%s ' , $ data ->success ) == "true " ) {
84- $ name = sprintf ("%s " , $ data ->apiKey ->name );
85- $ key = sprintf ("%s " , $ data ->apiKey ->hash );
86- }
82+ $ name = sprintf ("%s " , $ data ->apiKey ->name );
83+ $ key = sprintf ("%s " , $ data ->apiKey ->hash );
8784
8885 if (isset ($ args ['simple-output ' ])) {
8986 $ response = new Response ();
9087 $ response ->setContent ("$ name \n$ key \n" );
9188 }
9289
9390 $ wait = $ this ->params ('wait ' );
94- if ($ wait ) {
91+ if ($ wait && sprintf ( ' %s ' , $ data -> success ) != " true " ) {
9592 $ keyService = $ this ->getServiceLocator ()->get ('defaultApiKey ' );
9693 $ keyService ->setName ($ name );
9794 $ keyService ->setKey ($ key );
You can’t perform that action at this time.
0 commit comments