summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2014-03-04 09:22:51 +0100
committerMichal Minar <miminar@redhat.com>2014-03-04 10:05:12 +0100
commit7e0c9154433dc8ab37da75b02f8a0ec6b586ebbd (patch)
tree497beaf3484804e585a74aa68c90995344e02fa9
parent595b0922d150ebe1761bb5e36ae1997ff72568ea (diff)
downloadopenlmi-scripts-7e0c9154433dc8ab37da75b02f8a0ec6b586ebbd.tar.gz
openlmi-scripts-7e0c9154433dc8ab37da75b02f8a0ec6b586ebbd.tar.xz
openlmi-scripts-7e0c9154433dc8ab37da75b02f8a0ec6b586ebbd.zip
software: fixed search command
Search command was completely broken.
-rw-r--r--commands/software/lmi/scripts/software/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/software/lmi/scripts/software/cmd.py b/commands/software/lmi/scripts/software/cmd.py
index fe2a5e6..b747c1c 100644
--- a/commands/software/lmi/scripts/software/cmd.py
+++ b/commands/software/lmi/scripts/software/cmd.py
@@ -102,7 +102,7 @@ from lmi.scripts.software.cmd_list import Lister
LOG = get_logger(__name__)
class Search(command.LmiInstanceLister):
- ARRAY_SUFFIX = '_array'
+ ARG_ARRAY_SUFFIX = '_array'
PROPERTIES = (
('NEVRA', 'ElementName'),
('Installed', lambda i: i.InstallDate is not None),
@@ -115,7 +115,7 @@ class Search(command.LmiInstanceLister):
allow_duplicates=_allow_duplicates,
exact_match=False,
pkg_spec=pkg_spec):
- yield pkg
+ yield pkg.to_instance()
class PkgInfo(command.LmiShowInstance):
DYNAMIC_PROPERTIES = True