summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-09-26 13:20:46 +0200
committerMichal Minar <miminar@redhat.com>2013-09-26 13:20:46 +0200
commitb936818669086e0d79a8540969e8cd76770b5ae5 (patch)
tree10f9850bd7a23de2a4aa60f811b4783808190841 /commands
parent984d6516660b1a4be61635f8019be1753968db1d (diff)
downloadopenlmi-scripts-b936818669086e0d79a8540969e8cd76770b5ae5.tar.gz
openlmi-scripts-b936818669086e0d79a8540969e8cd76770b5ae5.tar.xz
openlmi-scripts-b936818669086e0d79a8540969e8cd76770b5ae5.zip
service: fixed invocation of restart command
Diffstat (limited to 'commands')
-rw-r--r--commands/service/lmi/scripts/service/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/service/lmi/scripts/service/cmd.py b/commands/service/lmi/scripts/service/cmd.py
index 6de5826..9d25592 100644
--- a/commands/service/lmi/scripts/service/cmd.py
+++ b/commands/service/lmi/scripts/service/cmd.py
@@ -90,9 +90,9 @@ class Restart(command.LmiCheckResult):
def transform_options(self, options):
"""
``try`` is a keyword argument in python, let's rename it to
- ``just_try``.
+ ``just-try`` which will be transformed into ``just_try``.
"""
- options['just_try'] = options.pop('--try')
+ options['just-try'] = options.pop('--try')
class Reload(command.LmiCheckResult):
EXPECT = 0