[cura-tools] master: introduce _LmiShellClient::hostname property (5705f4f)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 5705f4fc907dad079c54638d93749bc96f46c853
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 15:08:42 2013 +0100
introduce _LmiShellClient::hostname property
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_shell.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index efa9006..fab9579 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -756,6 +756,10 @@ class LmiConnection(object):
self._shell_client = _LmiShellClient(hostname, username, password, interactive)
@property
+ def hostname(self):
+ return self._shell_client._hostname
+
+ @property
def namespaces(self):
return ["root"]
11 years, 3 months
[cura-tools] master: do not store passwords in LmiBaseClient objects (31b6c51)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 31b6c51c6262622114e90ea5f8d403215e0bcdcf
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 15:07:58 2013 +0100
do not store passwords in LmiBaseClient objects
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_base.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_base.py b/cli-tools/lmi/lmi_client_base.py
index 320d035..d6bf417 100644
--- a/cli-tools/lmi/lmi_client_base.py
+++ b/cli-tools/lmi/lmi_client_base.py
@@ -68,12 +68,11 @@ class LmiBaseClient(object):
def __init__(self, hostname, username = "", password = ""):
self._hostname = hostname
self._username = username
- self._password = password
if not self._hostname.startswith("http://") and \
not self._hostname.startswith("https://"):
self._hostname = "https://" + self._hostname
self._cliconn = pywbem.WBEMConnection(self._hostname,
- (self._username, self._password))
+ (self._username, password))
def _get_instance_names(self, klass, **kwargs):
filter_value = ""
11 years, 3 months
[cura-tools] master: introduce _LmiClass::instance_names(), ::first_instance_name() (c68b4af)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit c68b4af0a3c10fffe37a51651c587c2b249f153a
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 14:03:10 2013 +0100
introduce _LmiClass::instance_names(), ::first_instance_name()
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_base.py | 16 ++++++++++++++++
cli-tools/lmi/lmi_client_shell.py | 16 ++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_base.py b/cli-tools/lmi/lmi_client_base.py
index 2509d1f..320d035 100644
--- a/cli-tools/lmi/lmi_client_base.py
+++ b/cli-tools/lmi/lmi_client_base.py
@@ -76,6 +76,20 @@ class LmiBaseClient(object):
(self._username, self._password))
def _get_instance_names(self, klass, **kwargs):
+ filter_value = ""
+ filter_key = "Name"
+ if "key" in kwargs:
+ filter_key = kwargs["key"]
+ kwargs.pop("key")
+ elif "Key" in kwargs:
+ filter_key = kwargs["Key"]
+ kwargs.pop("Key")
+ if "value" in kwargs:
+ filter_value = kwargs["value"]
+ kwargs.pop("value")
+ if "Value" in kwargs:
+ filter_value = kwargs["Value"]
+ kwargs.pop("Value")
try:
inst_name_list = self._cliconn.EnumerateInstanceNames(klass, **kwargs)
except pywbem.cim_operations.CIMError, e:
@@ -84,6 +98,8 @@ class LmiBaseClient(object):
except pywbem.cim_http.AuthError, e:
raise_or_dump_exception(e)
return LmiReturnValue(rval = None, rparams = {}, errorstr = e.args[0])
+ if filter_value:
+ inst_name_list = filter(lambda n: not filter_key in n or n[filter_key] == filter_value, inst_name_list)
return LmiReturnValue(rval = inst_name_list, rparams = {}, errorstr = "")
def _get_instance(self, path, **kwargs):
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index a7f85aa..efa9006 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -395,6 +395,22 @@ class _LmiClass(BaseObject):
def doc(self):
_LmiXmlFormatter(self._cim_class.tocimxml()).fancy_format(self._client.interactive)
+ def instance_names(self, **kwargs):
+ (inst_name_list, _, errorstr) = self._client._get_instance_names(
+ self._cim_class.classname, **kwargs)
+ if not inst_name_list:
+ return []
+ result = []
+ for i in inst_name_list:
+ result.append(_LmiInstanceName(self._client, i))
+ return result
+
+ def first_instance_name(self, **kwargs):
+ inst_name_list = self.instance_names(**kwargs)
+ if not inst_name_list:
+ return None
+ return inst_name_list[0]
+
def instances(self, **kwargs):
(instance_list, _, errorstr) = self._client._get_instances(
self._cim_class.classname, **kwargs)
11 years, 3 months
[cura-tools] master: introduce _LmiInstance::first_reference() (60ec6d3)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 60ec6d38f7bd4b62d7a0f865196f2e09a9752a80
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 13:24:20 2013 +0100
introduce _LmiInstance::first_reference()
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_shell.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index 38c9d5d..a7f85aa 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -687,6 +687,13 @@ class _LmiInstance(BaseObject):
return result
@possibly_deleted
+ def first_reference(self, ResultClass = None, Role = None, Props = None):
+ result = self.references(ResultClass = ResultClass, Role = Role, Props = Props)
+ if not result:
+ return None
+ return result[0]
+
+ @possibly_deleted
def properties(self):
return self._cim_instance.properties.keys()
11 years, 3 months
[cura-tools] master: introduce _LmiInstance::first_associator() (e78bb82)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit e78bb828d4abff0764af2f21f17d2af0da295738
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 13:15:01 2013 +0100
introduce _LmiInstance::first_associator()
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_shell.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index 30931f6..38c9d5d 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -656,6 +656,15 @@ class _LmiInstance(BaseObject):
return result
@possibly_deleted
+ def first_associator(self, AssocClass = None, ResultClass = None, Role = None, \
+ ResultRole = None, Props = None):
+ result = self.associators(AssocClass = AssocClass, ResultClass = ResultClass,
+ Role = Role, ResultRole = ResultRole, Props = Props)
+ if not result:
+ return None
+ return result[0]
+
+ @possibly_deleted
def references(self, ResultClass = None, Role = None, Props = None):
result = []
references_args = {}
11 years, 3 months
[cura-tools] master: introduce _LmiClass::create_instance() (0ede3cc)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 0ede3cc45d2f7ba14474599fcb86bb9e98c74584
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 12:51:06 2013 +0100
introduce _LmiClass::create_instance()
>---------------------------------------------------------------
cli-tools/lmi/lmi_client_base.py | 10 +++++++
cli-tools/lmi/lmi_client_shell.py | 53 ++++++++++++++++++++++++++----------
2 files changed, 48 insertions(+), 15 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_base.py b/cli-tools/lmi/lmi_client_base.py
index 87e5f3d..2509d1f 100644
--- a/cli-tools/lmi/lmi_client_base.py
+++ b/cli-tools/lmi/lmi_client_base.py
@@ -198,6 +198,16 @@ class LmiBaseClient(object):
raise_or_dump_exception(e)
return []
+ def _create_instance(self, classname, namespace, properties = {}, qualifiers = {}, property_list = None):
+ cim_instance = pywbem.CIMInstance(classname, properties, qualifiers,
+ pywbem.CIMInstanceName(classname, namespace = namespace), property_list)
+ try:
+ cim_path = self._cliconn.CreateInstance(NewInstance = cim_instance)
+ except pywbem.CIMError, e:
+ raise_or_dump_exception(e)
+ return LmiReturnValue(rval = None, rparams = {}, errorstr = e.args[1])
+ return self._get_instance(cim_path, LocalOnly = False)
+
def _modify_instance(self, instance, **params):
try:
self._cliconn.ModifyInstance(instance, **params)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index 1011e1c..30931f6 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -33,12 +33,33 @@ class LmiUnknownParameterError(Exception):
"""Raised, when there is a method call issued and unknown
method parameter is provided"""
+class LmiUnknownPropertyError(Exception):
+ """Raised, when there is an attempt to create instance with
+ unknown property provided"""
+
class LmiMethodCallError(Exception):
"""Raised, when an error occurs within method call"""
class LmiNoPagerError(Exception):
"""Raised, when tere is no default pager like less or more"""
+def cast_lmi_to_cim(t, value):
+ cast = {
+ "sint8" : lambda x: pywbem.Sint8(x),
+ "uint8" : lambda x: pywbem.Uint8(x),
+ "sint16" : lambda x: pywbem.Sint16(x),
+ "uint16" : lambda x: pywbem.Uint16(x),
+ "sint32" : lambda x: pywbem.Sint32(x),
+ "uint32" : lambda x: pywbem.Uint32(x),
+ "sint64" : lambda x: pywbem.Sint64(x),
+ "uint64" : lambda x: pywbem.Uint64(x),
+ "reference": lambda x: x._cim_instance.path if isinstance(x, _LmiInstance) else x
+ }
+ if not t.lower() in cast:
+ return value
+ cast_func = cast[t]
+ return cast_func(value)
+
class _LmiTextFormatter(object):
def __init__(self, text):
self._text = text
@@ -356,6 +377,21 @@ class _LmiClass(BaseObject):
def __repr__(self):
return "%s(classname='%s', ...)" % (self.__class__.__name__, self.classname)
+ def create_instance(self, properties = {}, qualifiers = {}, property_list = None):
+ self_properties = self._cim_class.properties
+ for (key, value) in properties.iteritems():
+ if not key in self._cim_class.properties:
+ if LmiBaseClient._get_use_exceptions():
+ raise LmiUnknownPropertyError
+ return None
+ t = self._cim_class.properties[key].type
+ properties[key] = cast_lmi_to_cim(t, value)
+ (cim_instance, rparams, errorstr) = self._client._create_instance(self.classname, self.namespace,
+ properties, qualifiers, property_list)
+ if not cim_instance:
+ return None
+ return _LmiInstance(self._client, self, cim_instance)
+
def doc(self):
_LmiXmlFormatter(self._cim_class.tocimxml()).fancy_format(self._client.interactive)
@@ -481,23 +517,10 @@ class _LmiInstanceMethod(BaseObject):
return lmi_rparams
def __call__(self, *args, **kwargs):
- cast = {
- "sint8" : lambda x: pywbem.Sint8(x),
- "uint8" : lambda x: pywbem.Uint8(x),
- "sint16" : lambda x: pywbem.Sint16(x),
- "uint16" : lambda x: pywbem.Uint16(x),
- "sint32" : lambda x: pywbem.Sint32(x),
- "uint32" : lambda x: pywbem.Uint32(x),
- "sint64" : lambda x: pywbem.Sint64(x),
- "uint64" : lambda x: pywbem.Uint64(x),
- "reference": lambda x: x._cim_instance.path if isinstance(x, _LmiInstance) else x
- }
for (param, value) in kwargs.iteritems():
if param in self._method.parameters:
- t = self._method.parameters[param].type.lower()
- if t in cast:
- cast_func = cast[t]
- kwargs[param] = cast_func(value)
+ t = self._method.parameters[param].type
+ kwargs[param] = cast_lmi_to_cim(t, value)
else:
# NOTE: maybe we could check for pywbem type
# and not to exit prematurely
11 years, 3 months
[cura-tools] master: fix completion of _LmiInstanceName (4c5b432)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 4c5b4326d7b181880706e2a2451c0ce81e42a401
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 10:30:49 2013 +0100
fix completion of _LmiInstanceName
>---------------------------------------------------------------
cli-tools/lmishell | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cli-tools/lmishell b/cli-tools/lmishell
index 2102421..8c98701 100755
--- a/cli-tools/lmishell
+++ b/cli-tools/lmishell
@@ -27,6 +27,7 @@ from lmi.lmi_client_shell import _LmiNamespace
from lmi.lmi_client_shell import _LmiNamespaceRoot
from lmi.lmi_client_shell import _LmiClass
from lmi.lmi_client_shell import _LmiInstance
+from lmi.lmi_client_shell import _LmiInstanceName
def get_item_or_default(dic, item, default):
return dic[item] if item in dic else default
@@ -126,7 +127,7 @@ class _LmiCompleter(rlcompleter.Completer):
def _callable_postfix(self, val, word):
if hasattr(val, '__call__') \
- and not isinstance(val, (_LmiNamespace, _LmiClass, _LmiInstance, LmiReturnValue)):
+ and not isinstance(val, (_LmiNamespace, _LmiClass, _LmiInstance, _LmiInstanceName, LmiReturnValue)):
word = word + "("
return word
11 years, 3 months
[cura-tools] master: introduce shell config feature (6273feb)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 6273feb2f7e90589d0394ac9e0774042eb3b1fa4
Author: Peter Hatina <phatina(a)redhat.com>
Date: Mon Feb 11 14:41:31 2013 +0100
introduce shell config feature
>---------------------------------------------------------------
cli-tools/lmishell | 42 +++++++++++++++++++++++++++++++++++++-----
1 files changed, 37 insertions(+), 5 deletions(-)
diff --git a/cli-tools/lmishell b/cli-tools/lmishell
index 7312ed2..2102421 100755
--- a/cli-tools/lmishell
+++ b/cli-tools/lmishell
@@ -28,6 +28,9 @@ from lmi.lmi_client_shell import _LmiNamespaceRoot
from lmi.lmi_client_shell import _LmiClass
from lmi.lmi_client_shell import _LmiInstance
+def get_item_or_default(dic, item, default):
+ return dic[item] if item in dic else default
+
def _lmi_displayhook(o):
if o is None:
return
@@ -53,6 +56,7 @@ class _LmiShellOptions(object):
self._argv = argv
self._script_name = ""
self._script_argv = []
+ self._config_file = ""
self._good = True
self._inspect = False
self._help = False
@@ -69,6 +73,9 @@ class _LmiShellOptions(object):
else:
self._good = False
break
+ @property
+ def config_file(self):
+ return self._config_file
@property
def good(self):
@@ -162,7 +169,11 @@ class _LmiCompleter(rlcompleter.Completer):
return rlcompleter.Completer.complete(self, text, state)
class LmiInteractiveShell(code.InteractiveConsole):
- def __init__(self, prompt, more_prompt, locals = None):
+ DEFAULT_CONFIG_FILE = "~/.lmishellrc"
+ DEFAULT_HISTORY_FILE = "~/.lmi_shell_history"
+ DEFAULT_HISTORY_LENGTH = -1
+
+ def __init__(self, prompt, more_prompt, locals = None, **kwargs):
sys.ps1 = prompt
sys.ps2 = more_prompt
if locals is None:
@@ -174,7 +185,7 @@ class LmiInteractiveShell(code.InteractiveConsole):
locals["use_exceptions"] = _use_exceptions
code.InteractiveConsole.__init__(self, locals)
self._completer = _LmiCompleter(self.locals)
- self._history_path = os.path.expanduser("~/.lmi_shell_history")
+ self.load_config(get_item_or_default(kwargs, "config", LmiInteractiveShell.DEFAULT_CONFIG_FILE))
readline.set_completer(self._completer.complete)
readline.parse_and_bind('tab: complete')
@@ -212,13 +223,34 @@ class LmiInteractiveShell(code.InteractiveConsole):
more = 0
self.save_history()
+ def load_config(self, config_file):
+ try:
+ conf = {}
+ execfile(os.path.expanduser(config_file), conf)
+ self._history_file = os.path.expanduser(get_item_or_default(conf, "history_file",
+ LmiInteractiveShell.DEFAULT_HISTORY_FILE))
+ self._history_length = get_item_or_default(conf, "history_length",
+ LmiInteractiveShell.DEFAULT_HISTORY_LENGTH)
+ except (SyntaxError, IOError), e:
+ sys.stderr.write("Error: %s\n" % e)
+ self._history_file = os.path.expanduser(LmiInteractiveShell.DEFAULT_HISTORY_FILE)
+ self._history_length = LmiInteractiveShell.DEFAULT_HISTORY_LENGTH
+
def load_history(self):
- if not os.path.exists(self._history_path):
+ if self._history_length == 0 or not os.path.exists(self._history_file):
return
- readline.read_history_file(self._history_path)
+ readline.read_history_file(self._history_file)
+ if self._history_length > 0 and readline.get_current_history_length() > self._history_length:
+ readline.set_history_length(length)
+ readline.write_history_file(self._history_file)
+ readline.read_history_file(self._history_file)
def save_history(self):
- readline.write_history_file(self._history_path)
+ if self._history_length == 0:
+ return
+ elif self._history_length > 0:
+ readline.set_history_length(self._history_length)
+ readline.write_history_file(self._history_file)
def clear_history(self):
readline.clear_history()
11 years, 3 months
[cura-tools] master: bump release version to v0.3 (90146d9)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 90146d943ea351f0ec3435b76afe2ddc38396d75
Author: Peter Hatina <phatina(a)redhat.com>
Date: Wed Feb 6 13:03:07 2013 +0100
bump release version to v0.3
>---------------------------------------------------------------
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 056ba5b..6b600a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
AC_PREREQ([2.60])
-AC_INIT([OpenLMI-tools], [0.2], [phatina(a)redhat.com])
+AC_INIT([OpenLMI-tools], [0.3], [phatina(a)redhat.com])
AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/python_module.m4])
11 years, 3 months
[cura-tools] master: extend license years interval (14289d3)
by phatina@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
>---------------------------------------------------------------
commit 14289d3f70d993c3f0d859d2290f499e38e3fe1d
Author: Peter Hatina <phatina(a)redhat.com>
Date: Wed Feb 6 12:52:18 2013 +0100
extend license years interval
>---------------------------------------------------------------
cli-tools/lmi/lmi_address.py | 2 +-
cli-tools/lmi/lmi_client_base.py | 2 +-
cli-tools/lmi/lmi_client_ip.py | 2 +-
cli-tools/lmi/lmi_client_power.py | 2 +-
cli-tools/lmi/lmi_client_service.py | 2 +-
cli-tools/lmi/lmi_client_shell.py | 2 +-
cli-tools/lmi/lmi_client_user.py | 2 +-
cli-tools/lmi/lmi_options.py | 2 +-
cli-tools/lmiip | 2 +-
cli-tools/lmipower | 2 +-
cli-tools/lmiservice | 2 +-
cli-tools/lmishell | 2 +-
cli-tools/lmiuser | 2 +-
13 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/cli-tools/lmi/lmi_address.py b/cli-tools/lmi/lmi_address.py
index 452b5fc..140dd26 100644
--- a/cli-tools/lmi/lmi_address.py
+++ b/cli-tools/lmi/lmi_address.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_base.py b/cli-tools/lmi/lmi_client_base.py
index a850f77..87e5f3d 100644
--- a/cli-tools/lmi/lmi_client_base.py
+++ b/cli-tools/lmi/lmi_client_base.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_ip.py b/cli-tools/lmi/lmi_client_ip.py
index af6bd04..d80e3a0 100644
--- a/cli-tools/lmi/lmi_client_ip.py
+++ b/cli-tools/lmi/lmi_client_ip.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_power.py b/cli-tools/lmi/lmi_client_power.py
index 7682e88..232a6f4 100644
--- a/cli-tools/lmi/lmi_client_power.py
+++ b/cli-tools/lmi/lmi_client_power.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_service.py b/cli-tools/lmi/lmi_client_service.py
index 4412b99..3fc964d 100644
--- a/cli-tools/lmi/lmi_client_service.py
+++ b/cli-tools/lmi/lmi_client_service.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index 5834d30..1011e1c 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_client_user.py b/cli-tools/lmi/lmi_client_user.py
index aab0f62..2fa2af1 100644
--- a/cli-tools/lmi/lmi_client_user.py
+++ b/cli-tools/lmi/lmi_client_user.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmi/lmi_options.py b/cli-tools/lmi/lmi_options.py
index 4b773bc..9fe1876 100644
--- a/cli-tools/lmi/lmi_options.py
+++ b/cli-tools/lmi/lmi_options.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmiip b/cli-tools/lmiip
index d548ab8..200f0df 100755
--- a/cli-tools/lmiip
+++ b/cli-tools/lmiip
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmipower b/cli-tools/lmipower
index 380d0de..1cf95a5 100755
--- a/cli-tools/lmipower
+++ b/cli-tools/lmipower
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmiservice b/cli-tools/lmiservice
index 826f7f3..9d4020e 100755
--- a/cli-tools/lmiservice
+++ b/cli-tools/lmiservice
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmishell b/cli-tools/lmishell
index 5093401..7312ed2 100755
--- a/cli-tools/lmishell
+++ b/cli-tools/lmishell
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/cli-tools/lmiuser b/cli-tools/lmiuser
index 63deeab..2ecff09 100755
--- a/cli-tools/lmiuser
+++ b/cli-tools/lmiuser
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (C) 2012 Peter Hatina <phatina(a)redhat.com>
+# Copyright (C) 2012-2013 Peter Hatina <phatina(a)redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
11 years, 3 months