Commit 3e69966e authored by Leigh B Stoller's avatar Leigh B Stoller

Add LocalURL() and LocalVersionURL() methods. The first returns a

URL that is NOT version specific; it points to whatever is the
currently released version of the image. LocalVersionURL() returns
a version-specific URL.
parent 0d4dbe89
......@@ -1901,5 +1901,21 @@ sub SetDelta($$)
return 0;
}
sub LocalURL($)
{
my ($self) = @_;
my $image_uuid = $self->image_uuid();
return "$TBBASE/image_metadata.php?uuid=$image_uuid";
}
sub LocalVersionURL($)
{
my ($self) = @_;
my $uuid = $self->uuid();
return "$TBBASE/image_metadata.php?uuid=$uuid";
}
# _Always_ make sure that this 1 is at the end of the file...
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