summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
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(