File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tests/Tests.Core/ManagedElasticsearch/Clusters Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ public XPackClusterConfiguration() : this(ClusterFeatures.SSL | ClusterFeatures.
1818
1919 public XPackClusterConfiguration ( ClusterFeatures features ) : base ( ClusterFeatures . XPack | features , 1 , ElasticsearchPlugin . IngestAttachment )
2020 {
21+ var isSnapshot = ! string . IsNullOrEmpty ( Version . PreRelease ) && Version . PreRelease . ToLower ( ) . Contains ( "snapshot" ) ;
2122 // Get license file path from environment variable
2223 var licenseFilePath = Environment . GetEnvironmentVariable ( "ES_LICENSE_FILE" ) ;
23- if ( ! string . IsNullOrEmpty ( licenseFilePath ) && File . Exists ( licenseFilePath ) )
24+ if ( ! isSnapshot && ! string . IsNullOrEmpty ( licenseFilePath ) && File . Exists ( licenseFilePath ) )
2425 {
2526 var licenseContents = File . ReadAllText ( licenseFilePath ) ;
2627 XPackLicenseJson = licenseContents ;
You can’t perform that action at this time.
0 commit comments