Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a7ce54b2
Commit
a7ce54b2
authored
May 25, 2010
by
Leigh B Stoller
Browse files
Minor bug fix for dealing with the Version return from newer CMs.
parent
bab97a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniAuthority.pm.in
View file @
a7ce54b2
...
...
@@ -27,6 +27,7 @@ use English;
use
overload
(
'""'
=>
'Stringify'
);
use
XML
::
Simple
;
use
Date
::
Parse
;
use
Data
::
Dumper
;
#
Configure
variables
my
$
TB
=
"@prefix@"
;
...
...
@@ -327,8 +328,13 @@ sub Version($)
print
STDERR
" "
.
$
response
->
output
()
.
"
\n
"
;
return
undef
;
}
$
self
->{
'version'
}
=
$
response
->
value
();
return
$
response
->
value
();
if
(
ref
($
response
->
value
()))
{
$
self
->{
'version'
}
=
$
response
->
value
()->{
'api'
};
}
else
{
$
self
->{
'version'
}
=
$
response
->
value
();
}
return
$
self
->{
'version'
};
}
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment