From b292204e62d5df6442438b08c0b996ac1e673d0a Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 20 Sep 2015 19:39:18 +0300 Subject: [PATCH] Fix perform_server_action --- lib/WebService/Scaleway.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebService/Scaleway.pm b/lib/WebService/Scaleway.pm index d4ea8b6..9c327e6 100644 --- a/lib/WebService/Scaleway.pm +++ b/lib/WebService/Scaleway.pm @@ -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}; } -- 2.39.2