mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
(tinc) don't try to set empty values when parsing objects from deployment file
This commit is contained in:
@@ -41,7 +41,7 @@ class NetwConfObject(object):
|
||||
def set(self, prop, value):
|
||||
if ('set_%s' % prop) in dir(self):
|
||||
getattr(self,'set_%s' % prop)(value)
|
||||
else:
|
||||
elif value.text is not None:
|
||||
# default copy propery to _payload
|
||||
self._payload[prop] = value.text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user