Commit ae513867 authored by Leigh Stoller's avatar Leigh Stoller

Fix up the ValidBlockstoreBackend() function. What was I thinking?

parent 714d0ba2
......@@ -132,7 +132,10 @@ sub DESTROY {
sub ValidBlockstoreBackend($)
{
my ($authority) = @_;
my ($domain,$subauth) = split(":", $authority);
my $hrn = GeniHRN->new($authority);
return -1
if (!defined($hrn));
my $domain = $hrn->domain();
return 1
if ($domain eq "emulab.net" ||
......
......@@ -972,7 +972,7 @@ sub CheckDatasets($$$)
#
# Not all backends have blockstore support.
#
if (!APT_Dataset::ValidBlockstoreBackend($dataset_authority)) {
if (!APT_Dataset::ValidBlockstoreBackend($dataset_urn)) {
$$pmsg = "Dataset $id is not on a valid aggregate";
return 1;
}
......
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