Merge "Sync 'threadgroup' from oslo-incubator"

This commit is contained in:
Jenkins 2015-02-26 14:05:55 +00:00 committed by Gerrit Code Review
commit 785f4baee1

View File

@ -11,12 +11,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import logging
import threading
import eventlet
from eventlet import greenpool
from cinder.openstack.common import log as logging
from cinder.openstack.common import loopingcall
@ -96,6 +96,8 @@ class ThreadGroup(object):
continue
try:
x.stop()
except eventlet.greenlet.GreenletExit:
pass
except Exception as ex:
LOG.exception(ex)