Commit 9b623f72 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

BUG FIX: Make sure to return <services></services> even in version 0.1 RSpecs

parent 997dc57a
...@@ -686,14 +686,14 @@ sub Create($$$$$$) ...@@ -686,14 +686,14 @@ sub Create($$$$$$)
GeniXML::SetText("hostname", $rspec, $hostname); GeniXML::SetText("hostname", $rspec, $hostname);
GeniXML::SetText("sshdport", $rspec, $sshdport) GeniXML::SetText("sshdport", $rspec, $sshdport)
if (defined($sshdport)); if (defined($sshdport));
} else {
my $services = GeniXML::AddElement("services", $rspec);
my $login = GeniXML::AddElement("login", $services);
GeniXML::SetText("authentication", $login, "ssh-keys");
GeniXML::SetText("hostname", $login, $phostname);
GeniXML::SetText("port", $login, $sshdport);
} }
my $services = GeniXML::AddElement("services", $rspec);
my $login = GeniXML::AddElement("login", $services);
GeniXML::SetText("authentication", $login, "ssh-keys");
GeniXML::SetText("hostname", $login, $phostname);
GeniXML::SetText("port", $login, $sshdport);
my $sliver = GeniSliver->Create($slice, $user, $resource_uuid, "Node", my $sliver = GeniSliver->Create($slice, $user, $resource_uuid, "Node",
$resource_id, $hrn, $nickname, $rspec); $resource_id, $hrn, $nickname, $rspec);
return undef return undef
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment