Discussion:
[Libstoragemgmt-devel] [SCM] libstoragemgmt branch, master, updated. 0.1.0-240-g63e6c25
Tony Asleson
2014-06-24 20:16:21 UTC
Permalink
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libstoragemgmt".

The branch, master has been updated
via 63e6c25af4c7f35bf36152d4b2541ea29623113f (commit)
via 96147c3f4ebf391ae9b6c0e5a5b844db74eb5f9a (commit)
via 8dc98629c679b62977eec67a7414cc5fbf35a65d (commit)
via 8bb0835cfb03b3e0303a38b8694bae4521c56152 (commit)
via a384623400ea15d15cc56da83abeaae29c621e4a (commit)
via 6b657611d26569986076af399a62e29a7bf93487 (commit)
via be05cbcf26c26ff46102f40d54b829ac9a91075a (commit)
via 3157e21664aef4d909349689a3df0bddf36a0aec (commit)
from 9e0090d8fca0d68c25606623f7e5163edfd4e21e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 63e6c25af4c7f35bf36152d4b2541ea29623113f
Author: Tony Asleson <***@redhat.com>
Date: Tue Jun 24 13:58:13 2014 -0500

smis.py: Add default value for _enumerate

Signed-off-by: Tony Asleson <***@redhat.com>

commit 96147c3f4ebf391ae9b6c0e5a5b844db74eb5f9a
Author: Gris Ge <***@redhat.com>
Date: Tue Jun 24 17:11:58 2014 +0800

SMI-S plugin: Add Capabilities.TARGET_PORTS check into capabilities()

* For no-fallback mode, we just check whether 'FC Target Ports' or 'iSCSI
Target Ports' profiles 1.4+ support status.
* For fallback mode, we use check enumeration against 'CIM_FCPort' and
'CIM_iSCSIProtocolEndpoint'.

Signed-off-by: Gris Ge <***@redhat.com>

commit 8dc98629c679b62977eec67a7414cc5fbf35a65d
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 14:29:56 2014 -0500

plugin_test.py: Add target_ports testing V2

V2: Correct call, targetports -> target_ports

Signed-off-by: Tony Asleson <***@redhat.com>

commit 8bb0835cfb03b3e0303a38b8694bae4521c56152
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 12:52:35 2014 -0500

Python plugins: Re-work generic exceptions

It wasn't very useful to just print the exception text without
the stack trace, so we are adding that too.

Note: The reason this is not in a common function is it's
possible that the common function could not be found in
the namespace and thus no debug information would be
available. Try and keep it simple and always available.

Signed-off-by: Tony Asleson <***@redhat.com>

commit a384623400ea15d15cc56da83abeaae29c621e4a
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 12:12:56 2014 -0500

PY: Rethrowing existing exceptions

When you have:

try:
foo()
except Exception as e:
# Want to raise original exception
raise # 1. preferred

# raise e # 1a. Bad

try:
bar()
except Exception as e:
import sys
exception_info = sys.exec_info()

try:
bar()
except Exception as e_inner:
pass

raise exception_info[1], None, exception_info[2]

It's better to do #1 instead of #1a as #1 will preserve the
stack trace to where the actual error occurred instead of
leading back to #1a where it was simply re-thrown.

However, in some cases you need to do a bit of work that may throw
an exception itself when handling an exception, so you need to
preserve and rethrow. In this case follow #2.

See:
http://nedbatchelder.com/blog/200711/rethrowing_exceptions_in_python.html

Signed-off-by: Tony Asleson <***@redhat.com>

commit 6b657611d26569986076af399a62e29a7bf93487
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 11:54:11 2014 -0500

plugin_test.py: Make except specific

Signed-off-by: Tony Asleson <***@redhat.com>

commit be05cbcf26c26ff46102f40d54b829ac9a91075a
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 11:50:32 2014 -0500

_pluginrunner.py: Make method _is_number static

Signed-off-by: Tony Asleson <***@redhat.com>

commit 3157e21664aef4d909349689a3df0bddf36a0aec
Author: Tony Asleson <***@redhat.com>
Date: Mon Jun 23 11:49:47 2014 -0500

PY: WS clean-up

Signed-off-by: Tony Asleson <***@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
plugin/nstor/nstor_lsmplugin | 5 ++-
plugin/ontap/na.py | 16 +++++---
plugin/ontap/ontap.py | 8 +++-
plugin/ontap/ontap_lsmplugin | 7 ++--
plugin/sim/sim_lsmplugin | 7 ++--
plugin/smispy/smis.py | 66 +++++++++++++++++++++++++++++++----
plugin/smispy/smispy_lsmplugin | 7 ++--
plugin/targetd/targetd_lsmplugin | 7 ++--
plugin/v7k/v7k_lsmplugin | 7 ++--
python_binding/lsm/_data.py | 18 +++++-----
python_binding/lsm/_iplugin.py | 6 ++-
python_binding/lsm/_pluginrunner.py | 9 +++--
test/plugin_test.py | 25 ++++++++++---
test/webtest/test_results.py | 2 +-
tools/lsmcli/cmdline.py | 7 ++--
15 files changed, 142 insertions(+), 55 deletions(-)


hooks/post-receive
--
libstoragemgmt
Loading...