Fix warning "provided hosts list is empty, only localhost is available"#1700
Merged
daall merged 1 commit intosonic-net:masterfrom May 27, 2020
wangxin:localhost-inventory-warning
Merged
Fix warning "provided hosts list is empty, only localhost is available"#1700daall merged 1 commit intosonic-net:masterfrom wangxin:localhost-inventory-warning
daall merged 1 commit intosonic-net:masterfrom
wangxin:localhost-inventory-warning
Conversation
Signed-off-by: Xin Wang <xiwang5@microsoft.com>
jleveque
approved these changes
May 27, 2020
shlomibitton
pushed a commit
to Junchao-Mellanox/sonic-mgmt
that referenced
this pull request
Jul 12, 2020
commit 0334657 Author: Xin Wang <xiwang5@microsoft.com> Date: Wed May 27 09:28:17 2020 +0800 Fix warning "provided hosts list is empty, only localhost is available" (sonic-net#1700) Signed-off-by: Xin Wang <xiwang5@microsoft.com> commit 2786c57 Author: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Wed May 27 02:03:40 2020 +0800 [QoS] Support designating the packet size when testing water mark of shared buffer (sonic-net#1663) * [qos] Support designating the packet size when testing water mark of shared buffer Change-Id: I9464564494f454bad2fe5aedea5305524ed179e2 Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
When run pytest scripts, a warning is always shown:
With this fix, the warning is no longer displayed. Fixture localhost still works fine.
Type of change
Approach
How did you do it?
Remove the "inventory='localhost'" argument when calling the ansible_adhoc fixture to create a localhost ansible object. The inventory supplied in pytest cli argument will be used.
How did you verify/test it?
Test run scripts depend on the localhost fixture. The localhost fixture works fine. The warning is not displayed.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation