Skip to content

Commit 8b160f7

Browse files
committed
Nil checks.
Signed-off-by: Matt Welke <matt.welke@spectrocloud.com>
1 parent 63ae909 commit 8b160f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/validators/community_image.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ func (s *CommunityGalleryImageRuleService) ReconcileCommunityGalleryImageRule(ru
7272
image.Properties.Identifier.Offer == nil || image.Properties.Identifier.Publisher == nil ||
7373
image.Properties.Identifier.SKU == nil || image.Location == nil || image.Type == nil {
7474
log.Error(nil, "One or more detailed properties in API response were nil.")
75-
detailsMsg = fmt.Sprintf("Found image; Name: '%s'", *image.Name)
75+
detailsMsg = fmt.Sprintf("Found image; Name: '%s'", ruleImageName)
7676
} else {
7777
detailsMsg = fmt.Sprintf("Found image; Name: '%s'; Offer: '%s'; Publisher: '%s'; SKU: '%s'; Location: '%s'; Type: '%s'",
78-
*image.Name,
78+
ruleImageName,
7979
*image.Properties.Identifier.Offer,
8080
*image.Properties.Identifier.Publisher,
8181
*image.Properties.Identifier.SKU,

0 commit comments

Comments
 (0)