Skip to content

Commit a1df68b

Browse files
author
Kimonas Sotirchos
committed
fix: Use ENV vars that have highest priority
1 parent 659d218 commit a1df68b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/charm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
from ops.framework import StoredState
1616
from ops.main import main
1717
from ops.model import ActiveStatus, BlockedStatus, MaintenanceStatus, WaitingStatus
18-
from serialized_data_interface import NoCompatibleVersions, NoVersionsListed, get_interfaces
18+
from serialized_data_interface import (
19+
NoCompatibleVersions,
20+
NoVersionsListed,
21+
get_interfaces,
22+
)
1923

2024

2125
class Operator(CharmBase):
@@ -131,6 +135,8 @@ def main(self, event):
131135
for k, v in {
132136
"MINIO_ACCESS_KEY": self.model.config["access-key"],
133137
"MINIO_SECRET_KEY": secret_key,
138+
"AWS_ACCESS_KEY_ID": self.model.config["access-key"],
139+
"AWS_SECRET_ACCESS_KEY": secret_key,
134140
}.items()
135141
},
136142
},

0 commit comments

Comments
 (0)