Commit c751377d authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix, must not have finished what I was doing.

parent 8b9192ca
......@@ -431,8 +431,6 @@ sub MapToLocalImage($$)
sub MapToLocalDataset($$@)
{
my ($urn, $experiment, @credentials) = @_;
# my $pid = $experiment->pid();
my $pid = "";
$urn = GeniHRN->new($urn);
my $blob;
......@@ -575,6 +573,8 @@ sub MapToLocalDataset($$@)
# access so it can use the dataset.
#
if (!$image->global()) {
my $pid = $experiment->pid();
print STDERR "Granting read privs for $image to $pid/$pid\n";
GeniUtil::ExecuteAsGeniUser("$GRANTIMAGE -g $pid/$pid $imageid");
}
......
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