All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit ae513867 authored by Leigh B Stoller's avatar Leigh B 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