Use Correct Struct

This commit is contained in:
Samuel Lorch 2023-04-02 11:18:36 +02:00
parent e527329094
commit d89edc1a6a
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ type UpdateInterfaceParameters struct {
Interface definitions.Interface
}
func (f *Network) UpdateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error) {
func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error) {
_, ok := f.ConfigManager.GetPendingConfig().Network.Interfaces[params.Name]
if !ok {
return struct{}{}, fmt.Errorf("Interface does not Exist")