From 2a8c509567754877ed0188784d7c38250484be48 Mon Sep 17 00:00:00 2001 From: Gabe Date: Fri, 6 Jun 2014 06:39:59 -0600 Subject: Add version and API version - Add API version to constants.py - Add version option to plugable.py - Add version to ipa manpage and fix a couple of typos https://fedorahosted.org/freeipa/ticket/4316 Reviewed-By: Petr Viktorin --- ipalib/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/constants.py') diff --git a/ipalib/constants.py b/ipalib/constants.py index e98eee6f8..2269189f4 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -23,7 +23,8 @@ All constants centralised in one file. """ import socket from ipapython.dn import DN -from ipapython.version import VERSION +from ipapython.version import VERSION, API_VERSION + try: FQDN = socket.getfqdn() except: @@ -65,6 +66,7 @@ CONFIG_SECTION = 'global' # This is a tuple instead of a dict so that it is immutable. # To create a dict with this config, just "d = dict(DEFAULT_CONFIG)". DEFAULT_CONFIG = ( + ('api_version', API_VERSION), ('version', VERSION), # Domain, realm, basedn: -- cgit