Skip to content

Commit cf3590f

Browse files
committed
feat(functions): Rename KIT_INSTANCE_ID env var to FIREBASE_KIT_INSTANCE_ID
Renamed the KIT_INSTANCE_ID environment variable to FIREBASE_KIT_INSTANCE_ID in both functions.py and tests.
1 parent 647756e commit cf3590f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

firebase_admin/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _resolve_resource(self, scope: FunctionScope) -> Tuple[Resource, Optional[st
248248
extension_or_kit_id = None
249249

250250
if scope.type == 'current':
251-
kit_instance_id = os.environ.get('KIT_INSTANCE_ID')
251+
kit_instance_id = os.environ.get('FIREBASE_KIT_INSTANCE_ID')
252252
if kit_instance_id:
253253
resource_id = f'kit-{kit_instance_id}-{resource_id}'
254254
extension_or_kit_id = kit_instance_id

tests/test_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_enqueue_current_scope_env_vars_ext(self, monkeypatch):
303303
assert recorder[0].url == expected_url
304304

305305
def test_enqueue_current_scope_env_vars_kit(self, monkeypatch):
306-
monkeypatch.setenv('KIT_INSTANCE_ID', 'my-kit')
306+
monkeypatch.setenv('FIREBASE_KIT_INSTANCE_ID', 'my-kit')
307307
expected_queue = 'kit-my-kit-test-function-name'
308308
response_payload = json.dumps({
309309
'name': (

0 commit comments

Comments
 (0)