diff options
author | Roman Rakus <rrakus@redhat.com> | 2013-09-05 14:49:22 +0200 |
---|---|---|
committer | Roman Rakus <rrakus@redhat.com> | 2013-09-05 15:21:56 +0200 |
commit | fd2badb57fcf77ad774d963106972624aa594a4e (patch) | |
tree | a2b5491c0a290c03c0a52b48d6a5870ea51dfe15 /mof | |
parent | 82c25225c1c8e817bfee0c8d0bb5ad2d1fa1faf3 (diff) | |
download | openlmi-providers-fd2badb57fcf77ad774d963106972624aa594a4e.tar.gz openlmi-providers-fd2badb57fcf77ad774d963106972624aa594a4e.tar.xz openlmi-providers-fd2badb57fcf77ad774d963106972624aa594a4e.zip |
Account: Better return values for methods
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'mof')
-rw-r--r-- | mof/60_LMI_Account.mof | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/mof/60_LMI_Account.mof b/mof/60_LMI_Account.mof index fdf748f..ce603ec 100644 --- a/mof/60_LMI_Account.mof +++ b/mof/60_LMI_Account.mof @@ -82,7 +82,14 @@ class LMI_AccountManagementService: CIM_SecurityService // It would be good to inherit from CIM_AccountManagementService // however I don't if to create instance from embeddedinstance is a good way { - [ Description ( "Create a new account on the system") ] + [ Description ( "Create a new account on the system"), + ValueMap { "0", "1", "2", "..", "4096", "4097"}, + Values { "Operation completed successfully", + "Operation unsupported", + "Failed", + "DMTF Reserved", + "Unable to set password, user created", + "Unable to create home directory, user created and password set" }] uint32 CreateAccount( [Required, IN, Description ( "The scoping ComputerSystem in which to create the Account." @@ -128,7 +135,13 @@ class LMI_AccountManagementService: CIM_SecurityService "such instances are created." )] CIM_Identity REF Identities[]); - [ Description ( "Create a new group on the system") ] + [ Description ( "Create a new group on the system"), + ValueMap { "0", "1", "2", ".."}, + Values { "Operation completed successfully", + "Operation unsupported", + "Failed", + "DMTF Reserved" }] + uint32 CreateGroup( [Required, IN, Description ( "The scoping ComputerSystem in which to create the Account." |