Skip to content

Commit

Permalink
get cache-stores command not correctly displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed Jan 16, 2025
1 parent b670a82 commit cb149c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/cache.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2024 Oracle and/or its affiliates.
* Copyright (c) 2021, 2025 Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
Expand Down Expand Up @@ -775,7 +775,7 @@ func ensureTierBack(cacheStoreDetails []config.CacheStoreDetail) []config.CacheS
// by checking the QueueSize. A value of -1 means no cache store configured.
func hasCacheStores(cacheStoreDetails []config.CacheStoreDetail) bool {
for _, v := range cacheStoreDetails {
if v.QueueSize == -1 {
if v.PersistenceType == "" {
return false
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2024 Oracle and/or its affiliates.
* Copyright (c) 2021, 2025 Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
Expand Down Expand Up @@ -524,7 +524,7 @@ func GetURLContents(resourceURL string) ([]byte, error) {
return http.ErrUseLastResponse
}}

req, err = http.NewRequest("GET", stableURL, bytes.NewBuffer(constants.EmptyByte))
req, err = http.NewRequest("GET", resourceURL, bytes.NewBuffer(constants.EmptyByte))
if err != nil {
return body, err
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2024 Oracle and/or its affiliates.
* Copyright (c) 2021, 2025 Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
Expand Down Expand Up @@ -148,7 +148,6 @@ func EnsureDirectory(directory string) error {
func DirectoryExists(directory string) bool {
file, err := os.Stat(directory)
if err != nil {
fmt.Println(err)
return !os.IsNotExist(err)
}
return file.IsDir()
Expand Down

0 comments on commit cb149c5

Please # to comment.