Review Request 882: lmishell, make instance refreshing after method call optional
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/882/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
It does not make sense to refresh all the LMIInstances after method call. This patch introduces an optional (keyword) argument of a method call, by which you can instruct lmishell to refresh such instance or let it be. By default, no instance is refreshed.
Example:
$ instance.MethodCall({"param1" : val1, "param2" : val2}, RefreshInstance=True)
$
Diffs
-----
cli/lmi/shell/LMIMethod.py 80f422e117057f93e6b9c65519982a4d1ae435db
Diff: http://reviewboard-openlmi.rhcloud.com/r/882/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months
Review Request 848: lmishell, unify method call arguments with instance filtering
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/848/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch unifies the means of passing arguments to method call and instance filtering.
Example:
> instance.MethodCall({"Param1" : val1, "Param2" : val2, ...})
compared to:
> instance.MethodCall(Param1=val1, Param2=val2, ...)
NOTE: The previous way, how to pass parameters to the method call still works.
Diffs
-----
cli/lmi/shell/LMIMethod.py 8168ca406df98ba4da49ff31ba7b4188195593b7
Diff: http://reviewboard-openlmi.rhcloud.com/r/848/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months
Review Request 687: lmishell, verify server side certificate
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/687/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch introduces server side certificate check, if SSL used. LMIShell can be told not to verify the certificate by CLI option -n, --noverify.
Diffs
-----
cli/lmi/shell/LMIBaseClient.py a8ecbcb116de488c6099e6da71631323e98610b7
cli/lmi/shell/LMIConnection.py c1ecaea86a7a02479eaae37cfc1720203bf97202
cli/lmi/shell/LMIConsole.py f81099fa84f1dadf3ac59597f3f020a521320899
cli/lmi/shell/LMIShellClient.py ca9a927464de4e67a5331cb095be34ab0b01e903
cli/lmi/shell/LMIShellOptions.py 3e182a7e8ebcbebd78d526b2c938f20455dd1a29
cli/lmishell a49a2fa29342ecefbf48626e1caa285df1cfa16b
Diff: http://reviewboard-openlmi.rhcloud.com/r/687/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months
Review Request 702: lmishell, introduce help() method
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/702/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch introduces simple help() function, which can either display man page for lmishell (if installed), or pydoc help for an object.
See following example:
> help
Type help() to see man page for lmishell, or help(object) for help about object.
> help()
... man page ...
or
Man page for lmishell can not be found, refer to Wiki page instead.
Available at: https://fedorahosted.org/openlmi/wiki/shell
> help(some_function)
... pydoc help ...
Diffs
-----
cli/lmi/shell/LMIConsole.py 31cecd6aaf7d2f49f6ce27122b464278a5dfc139
cli/lmi/shell/LMIHelper.py PRE-CREATION
cli/lmi/shell/LMIUtil.py 990ac8d1b5fac27cb21ad5f8796b68f08cf89432
Diff: http://reviewboard-openlmi.rhcloud.com/r/702/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months
Review Request 699: lmishell, introduce lmi_isinstance
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/699/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
lmi_isinstance is a LMIShell helper function, which checks if provided LMIInstance/LMIInstanceName is instance of provided LMIClass.
Example usage:
> cimv2 = c.root.cimv2
> se = cimv2.LMI_StorageExtent.first_instance()
> lmi_isinstance(se, cimv2.LMI_StorageExtent)
True
> lmi_isinstance(se, cimv2.CIM_StorageExtent)
True
> lmi_isinstance(se, cimv2.CIM_FileSystem)
False
Diffs
-----
cli/lmi/shell/LMIConsole.py 2c28d36fcc47d5cf1f1cc9959ba77c002c458f0b
cli/lmi/shell/LMIInstanceName.py 91406c453091c094f10a91e34a07667f1660b2c4
cli/lmi/shell/LMIShellClient.py eb850600d1d527ffc843f4fd233616259c7a2013
cli/lmi/shell/LMIUtil.py 618ee42634e70390d85a23c5a0b1d6c77c62db33
Diff: http://reviewboard-openlmi.rhcloud.com/r/699/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months
Review Request 691: lmishell, introduce connection property for LMI* wrapper classes
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/691/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
By this patch, all the wrapper classes (LMINamespace, LMIClass, LMIInstance{Name}, LMIMethod) have now property "connection", which returns the former LMIConnection object retrieved by connect().
Diffs
-----
cli/lmi/shell/LMIBaseObject.py 08d05513892c68388d76730652df1d07ced626f9
cli/lmi/shell/LMIClass.py 5e8db27847d9ddefb7883946b8ae8fe65faf5eee
cli/lmi/shell/LMIConnection.py 786fdd578b06873fe51528acaca575cde00133c7
cli/lmi/shell/LMIInstance.py af83f647b0037a259d0e5fdfefbd0176ead41dba
cli/lmi/shell/LMIInstanceName.py 20440cb20af0671a927de547d3537f5206cd7a50
cli/lmi/shell/LMIMethod.py 3a05740aab526f9cf3f35b2ae6d33e0555c5572f
cli/lmi/shell/LMINamespace.py 72a5f4d88d370768fe58c9796cfc1c45b14ad036
cli/lmi/shell/LMIUtil.py 370c073a22c2461428c066d019326d9941235679
Diff: http://reviewboard-openlmi.rhcloud.com/r/691/diff/
Testing
-------
Thanks,
Peter Hatina
10 years, 7 months