summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-10-29 07:31:36 +0100
committerMichal Minar <miminar@redhat.com>2013-10-31 13:24:02 +0100
commite639b9b9129562fbe9568d07a2c63f8437dbf48b (patch)
treeae59bf6b4f7c1897536591a97afa62bf9f0c059e /doc
parent683a3a0126109a6aed9dcce3b866231116007d6a (diff)
downloadopenlmi-providers-e639b9b9129562fbe9568d07a2c63f8437dbf48b.tar.gz
openlmi-providers-e639b9b9129562fbe9568d07a2c63f8437dbf48b.tar.xz
openlmi-providers-e639b9b9129562fbe9568d07a2c63f8437dbf48b.zip
doc: improvement in software's usage
Resolves ticket #165
Diffstat (limited to 'doc')
-rw-r--r--doc/admin/software/usage.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/admin/software/usage.rst b/doc/admin/software/usage.rst
index bc2f90e..7e2b9e4 100644
--- a/doc/admin/software/usage.rst
+++ b/doc/admin/software/usage.rst
@@ -83,7 +83,8 @@ enumerate them for particular repository represented by
c = connect("host", "user", "pass")
for repo in c.root.cimv2.LMI_SoftwareIdentityResource.instances():
- if repo.EnabledState != 2: # != Enabled
+ if repo.EnabledState != c.root.cimv2.LMI_SoftwareIdentityResource. \
+ EnabledStateValues.Enabled:
continue # skip disabled repositories
print(repo.Name)
for identity in repo.associator_names(