mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
tools: use "is" to compare _DEFAULT_ARG in "test-networkmanager-service.py"
This commit is contained in:
parent
4c3aac899e
commit
0363d746ac
|
@ -2266,7 +2266,7 @@ class IP4Config(ExportedObj):
|
|||
def __init__(self, generate_seed=_DEFAULT_ARG):
|
||||
ExportedObj.__init__(self, ExportedObj.create_path(IP4Config))
|
||||
|
||||
if generate_seed == _DEFAULT_ARG:
|
||||
if generate_seed is _DEFAULT_ARG:
|
||||
generate_seed = self.path
|
||||
|
||||
props = self._props_generate(generate_seed)
|
||||
|
@ -2465,7 +2465,7 @@ class IP6Config(ExportedObj):
|
|||
def __init__(self, generate_seed=_DEFAULT_ARG):
|
||||
ExportedObj.__init__(self, ExportedObj.create_path(IP6Config))
|
||||
|
||||
if generate_seed == _DEFAULT_ARG:
|
||||
if generate_seed is _DEFAULT_ARG:
|
||||
generate_seed = self.path
|
||||
|
||||
props = self._props_generate(generate_seed)
|
||||
|
@ -2639,7 +2639,7 @@ class Dhcp4Config(ExportedObj):
|
|||
def __init__(self, generate_seed=_DEFAULT_ARG):
|
||||
ExportedObj.__init__(self, ExportedObj.create_path(Dhcp4Config))
|
||||
|
||||
if generate_seed == _DEFAULT_ARG:
|
||||
if generate_seed is _DEFAULT_ARG:
|
||||
generate_seed = self.path
|
||||
|
||||
props = self._props_generate(generate_seed)
|
||||
|
@ -2680,7 +2680,7 @@ class Dhcp6Config(ExportedObj):
|
|||
def __init__(self, generate_seed=_DEFAULT_ARG):
|
||||
ExportedObj.__init__(self, ExportedObj.create_path(Dhcp6Config))
|
||||
|
||||
if generate_seed == _DEFAULT_ARG:
|
||||
if generate_seed is _DEFAULT_ARG:
|
||||
generate_seed = self.path
|
||||
|
||||
props = self._props_generate(generate_seed)
|
||||
|
|
Loading…
Reference in a new issue