Skip to content

Commit 7eee311

Browse files
Arta AsadiArta Asadi
authored andcommitted
fix: fix inegration service cmd file nil pointer error
1 parent b686257 commit 7eee311

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

services/integration/cmd.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,16 @@ func Command() *cobra.Command {
162162
Db: cnf.Steampipe.DB,
163163
}
164164

165+
isOnAks := false
166+
if isAKSPtr != nil {
167+
isOnAks = *isAKSPtr
168+
}
165169
elasticConfig := config2.ElasticSearch{
166170
Address: os.Getenv("ELASTICSEARCH_ADDRESS"),
167171
Username: os.Getenv("ELASTICSEARCH_USERNAME"),
168172
Password: os.Getenv("ELASTICSEARCH_PASSWORD"),
169-
IsOpenSearch: *isOpenSearchPtr,
170-
IsOnAks: *isAKSPtr,
173+
IsOpenSearch: false,
174+
IsOnAks: isOnAks,
171175
AwsRegion: os.Getenv("ELASTICSEARCH_AWS_REGION"),
172176
AssumeRoleArn: os.Getenv("ELASTICSEARCH_ASSUME_ROLE_ARN"),
173177
}

0 commit comments

Comments
 (0)