]> iEval git - webservice-scaleway.git/commitdiff
Fix perform_server_action
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 20 Sep 2015 16:39:18 +0000 (19:39 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 20 Sep 2015 16:39:18 +0000 (19:39 +0300)
lib/WebService/Scaleway.pm

index d4ea8b63c5f278b4897943c6afaa086334fef77c..9c327e6c77a69b5a1ee41926aafae865d1359c21 100644 (file)
@@ -155,7 +155,7 @@ sub server_actions {
 BEGIN { *list_server_actions = \&server_actions }
 
 sub perform_server_action {
-       my $content = encode_json { action => $_[1] };
+       my $content = encode_json { action => $_[2] };
        _tores shift->_post(_api "/servers/$_[0]/action", { content => $content })->{task};
 }
 
This page took 0.020764 seconds and 4 git commands to generate.