From b4d83eb5331b730fcbdab9fb62e4d8612949d090 Mon Sep 17 00:00:00 2001 From: AtaxyaNetwork Date: Thu, 6 Apr 2023 18:27:24 +0200 Subject: [PATCH] s/SrName/SrISOName Signed-off-by: AtaxyaNetwork --- builder/xenserver/common/common_config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/xenserver/common/common_config.go b/builder/xenserver/common/common_config.go index 6907e18..4ae5edd 100644 --- a/builder/xenserver/common/common_config.go +++ b/builder/xenserver/common/common_config.go @@ -271,7 +271,7 @@ func (config CommonConfig) GetISOSR(c *Connection) (xenapi.SRRef, error) { } else { // Use the provided name label to find the SR to use - srs, err := c.GetClient().SR.GetByNameLabel(c.session, config.SrName) + srs, err := c.GetClient().SR.GetByNameLabel(c.session, config.SrISOName) if err != nil { return srRef, err @@ -279,9 +279,9 @@ func (config CommonConfig) GetISOSR(c *Connection) (xenapi.SRRef, error) { switch { case len(srs) == 0: - return srRef, fmt.Errorf("Couldn't find a SR with the specified name-label '%s'", config.SrName) + return srRef, fmt.Errorf("Couldn't find a SR with the specified name-label '%s'", config.SrISOName) case len(srs) > 1: - return srRef, fmt.Errorf("Found more than one SR with the name '%s'. The name must be unique", config.SrName) + return srRef, fmt.Errorf("Found more than one SR with the name '%s'. The name must be unique", config.SrISOName) } return srs[0], nil