mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Summary: Fix exception handling in security_group.py
Detail: Code was attempting to concatinate an exception to a string. Updated to convert to text and concatinate that. BUG-ID: CLOUDSTACK-1052 Bugfix-for: master Reported-by: Noa Resare Signed-off-by: John Kinsella <jlk@stratosec.co> 1363218769 -0700
This commit is contained in:
parent
a94ff361dd
commit
381f737e64
@ -25,6 +25,8 @@ import os
|
|||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
from optparse import OptionParser, OptionGroup, OptParseError, BadOptionError, OptionError, OptionConflictError, OptionValueError
|
from optparse import OptionParser, OptionGroup, OptParseError, BadOptionError, OptionError, OptionConflictError, OptionValueError
|
||||||
import re
|
import re
|
||||||
|
import traceback
|
||||||
|
|
||||||
iptables = Command("iptables")
|
iptables = Command("iptables")
|
||||||
bash = Command("/bin/bash")
|
bash = Command("/bin/bash")
|
||||||
virsh = Command("virsh")
|
virsh = Command("virsh")
|
||||||
@ -692,7 +694,8 @@ def add_network_rules(vm_name, vm_id, vm_ip, signature, seqno, vmMac, rules, vif
|
|||||||
|
|
||||||
return 'true'
|
return 'true'
|
||||||
except:
|
except:
|
||||||
logging.debug("Failed to network rule !: " + sys.exc_type)
|
exceptionText = traceback.format_exc()
|
||||||
|
logging.debug("Failed to network rule !: " + exceptionText)
|
||||||
|
|
||||||
def getVifs(vmName):
|
def getVifs(vmName):
|
||||||
vifs = []
|
vifs = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user