Root password given only on returned object
Marco Fontani [Sat, 20 Nov 2010 19:35:58 +0000 (19:35 +0000)]
lib/Oyster/Provision/Rackspace.pm

index ee2002a..10f92fd 100644 (file)
@@ -58,8 +58,8 @@ sub create {
            },
       ],
    );
-   $server->create_server;
-   warn "Server root password: ", $server->adminpass, "\n";
+   my $newserver = $server->create_server;
+   warn "Server root password: ", $newserver->adminpass, "\n";
 
    do {
       $|=1;