* [dts] [PATCH V1] fix start error in dts
@ 2016-09-29 1:52 xu,gang
2016-09-29 5:15 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: xu,gang @ 2016-09-29 1:52 UTC (permalink / raw)
To: dts; +Cc: xu,gang
it's in settings don't need to reference
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
framework/settings.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/settings.py b/framework/settings.py
index 0e18a15..1cfb6c1 100644
--- a/framework/settings.py
+++ b/framework/settings.py
@@ -275,14 +275,14 @@ def accepted_nic(pci_id):
it is selected in the execution file, otherwise it returns False.
"""
nic = load_global_setting(HOST_NIC_SETTING)
- if pci_id not in settings.NICS.values():
+ if pci_id not in NICS.values():
return False
if nic is 'any':
return True
else:
- if pci_id == settings.NICS[nic]:
+ if pci_id == NICS[nic]:
return True
return False
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] fix start error in dts
2016-09-29 1:52 [dts] [PATCH V1] fix start error in dts xu,gang
@ 2016-09-29 5:15 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-09-29 5:15 UTC (permalink / raw)
To: xu,gang, dts
Thanks, applied.
On 09/29/2016 09:52 AM, xu,gang wrote:
> it's in settings don't need to reference
>
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> framework/settings.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/framework/settings.py b/framework/settings.py
> index 0e18a15..1cfb6c1 100644
> --- a/framework/settings.py
> +++ b/framework/settings.py
> @@ -275,14 +275,14 @@ def accepted_nic(pci_id):
> it is selected in the execution file, otherwise it returns False.
> """
> nic = load_global_setting(HOST_NIC_SETTING)
> - if pci_id not in settings.NICS.values():
> + if pci_id not in NICS.values():
> return False
>
> if nic is 'any':
> return True
>
> else:
> - if pci_id == settings.NICS[nic]:
> + if pci_id == NICS[nic]:
> return True
>
> return False
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-29 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 1:52 [dts] [PATCH V1] fix start error in dts xu,gang
2016-09-29 5:15 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).