public function createNode(ParameterBag $parameters)
{
try {
$name = $parameters->get('name');
// human readable name of the newly created droplet
$location = $parameters->get('location')->getId();
// datacenter region id
$size = $parameters->get('size')->getName();
// size name. digital ocean does not have id in Size
$image = $parameters->get('image')->getId();
// image id
return $this->toNode($this->digitalocean->droplet()->create($name, $location, $size, $image));
} catch (\Exception $e) {
throw $e;
}
}