mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
fix: format config.Path method
This commit is contained in:
@@ -39,7 +39,7 @@ func selectContext(uncli *cli.CLI) error {
|
|||||||
return fmt.Errorf("context management is not available: Uncloud configuration file is not being used")
|
return fmt.Errorf("context management is not available: Uncloud configuration file is not being used")
|
||||||
}
|
}
|
||||||
if len(uncli.Config.Contexts) == 0 {
|
if len(uncli.Config.Contexts) == 0 {
|
||||||
return fmt.Errorf("no contexts found in Uncloud config (%s)", uncli.Config.Path)
|
return fmt.Errorf("no contexts found in Uncloud config (%s)", uncli.Config.Path())
|
||||||
}
|
}
|
||||||
|
|
||||||
contextNames := slices.Sorted(maps.Keys(uncli.Config.Contexts))
|
contextNames := slices.Sorted(maps.Keys(uncli.Config.Contexts))
|
||||||
|
|||||||
Reference in New Issue
Block a user