X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fversion.py.in;h=97ae6c40a457759ec31737cd89207d580624ee94;hb=052e281f8c79237b6759cbb259407f071adda1cc;hp=794d428e1345e46deef535cb5c5fc2bdc1182d8a;hpb=8c18e6efae48c158711aa174da13a4040f015163;p=sfa.git diff --git a/sfa/util/version.py.in b/sfa/util/version.py.in index 794d428e..97ae6c40 100644 --- a/sfa/util/version.py.in +++ b/sfa/util/version.py.in @@ -2,17 +2,12 @@ version_tag="@VERSIONTAG@" scm_url="@SCMURL@" import socket - -from sfa.util.config import Config -def version_core (more={}): - config = Config() - hostname = socket.gethostname() +def version_core (more=None): + if more is None: more={} core = { 'code_tag' : version_tag, 'code_url' : scm_url, - 'hostname' : hostname, - 'geni_api': 3, - 'geni_api_versions': {'3': "%s:%s" % (hostname, config.sfa_aggregate_port)}, + 'hostname' : socket.gethostname(), } core.update(more) return core