hyperv: lookup machine on local filesystem first

when looking for a machine, look it up locally first to prevent
accidental collision with non-podman machine vms.  in the cast of
`podman machine ls`, only list podman machines found by json files

Enabled remove with force.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2023-03-22 15:29:24 -05:00
parent 67c98ec5de
commit 518eafaa34
15 changed files with 232 additions and 54 deletions

View File

@@ -46,12 +46,11 @@ const (
SummaryRequestOtherEnabledState = 132
)
type SummaryRequestSet []uint
var (
// SummaryRequestCommon includes a smaller subset of commonly used fields
// SummaryRequestCommon includes a smaller subset of commonly used fields
SummaryRequestCommon = SummaryRequestSet{
SummaryRequestName,
SummaryRequestElementName,
@@ -72,7 +71,7 @@ var (
SummaryRequestSwapFilesInUse,
}
// SummaryRequestNearAll includes everything but load history and thumbnails
// SummaryRequestNearAll includes everything but load history and thumbnails
SummaryRequestNearAll = SummaryRequestSet{
SummaryRequestName,
SummaryRequestElementName,