Commit 6b6d1fac authored by Leigh Stoller's avatar Leigh Stoller

Minor fixes for tunnels.

parent db4d0c7b
......@@ -809,14 +809,14 @@ sub Create($$$$$$)
print STDERR "Could not lookup node at clearinghouse\n";
goto bad;
}
my $certificate = GeniCertificate->LoadFromString($blob->{'cm'});
my $certificate = GeniCertificate->LoadFromString($blob->{'gid'});
goto bad
if (!defined($certificate));
my $component = GeniComponent->Lookup($certificate->uuid());
if (!defined($component)) {
$component = GeniComponent->CreateFromCertificate($certificate,
$blob->{'url'});
$component = GeniComponent->CreateFromCertificate($certificate);
if (!defined($component)) {
print STDERR "Could not create component from $certificate\n";
goto bad;
......@@ -866,14 +866,13 @@ sub Create($$$$$$)
print STDERR "Could not lookup node at clearinghouse\n";
goto bad;
}
my $certificate = GeniCertificate->LoadFromString($blob->{'cm'});
my $certificate = GeniCertificate->LoadFromString($blob->{'gid'});
goto bad
if (!defined($certificate));
my $component = GeniComponent->Lookup($certificate->uuid());
if (!defined($component)) {
$component = GeniComponent->CreateFromCertificate($certificate,
$blob->{'url'});
$component = GeniComponent->CreateFromCertificate($certificate);
if (!defined($component)) {
print STDERR "Could not create component from $certificate\n";
goto bad;
......
......@@ -738,7 +738,7 @@ sub Create($$$$$)
"count" => 1,
"vtype" => "$vtype",
"nodeid" => $node->node_id(),
"verbose" => 1 }) < 0) {
"verbose" => 0 }) < 0) {
print STDERR "Could not create new virtual node on $node\n";
return undef;
}
......
Markdown is supported
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