mirror of https://github.com/apache/cloudstack.git
Arping command in virtual-router was called anyway on python code. on file: merge.py line 239, in this code : "dp['gateway'] ='None' '' later on CsAddress.py line 303 if 'gateway' in self.address: self.arpPing() This string 'None' makes if steatement always be true the solution on #2806 makes dp['gateway'] ='' Cannot be None type because there is a string operation later on code. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
13779ddd2e
commit
3212ce51e7
|
|
@ -236,7 +236,7 @@ class updateDataBag:
|
|||
if('localgw' in self.qFile.data['cmd_line']):
|
||||
dp['gateway'] = self.qFile.data['cmd_line']['localgw']
|
||||
else:
|
||||
dp['gateway'] = 'None'
|
||||
dp['gateway'] = ''
|
||||
dp['nic_dev_id'] = num
|
||||
dp['nw_type'] = nw_type
|
||||
qf = QueueFile()
|
||||
|
|
|
|||
Loading…
Reference in New Issue