Skip to content

Commit f7d1a43

Browse files
authored
Fix CloudMemorystoreCreateInstanceAndImportOperator operator (#7856)
1 parent beef6c2 commit f7d1a43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žairflow/providers/google/cloud/operators/cloud_memorystore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def execute(self, context: Dict):
831831

832832
hook.import_instance(
833833
location=self.location,
834-
instance=self.instance,
834+
instance=self.instance_id,
835835
input_config=self.input_config,
836836
project_id=self.project_id,
837837
retry=self.retry,

β€Žtests/providers/google/cloud/operators/test_cloud_memorystore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def test_assert_valid_hook_call(self, mock_hook):
320320
),
321321
mock.call().import_instance(
322322
input_config=TEST_INPUT_CONFIG,
323-
instance=TEST_INSTANCE,
323+
instance=TEST_INSTANCE_ID,
324324
location=TEST_LOCATION,
325325
metadata=TEST_METADATA,
326326
project_id=TEST_PROJECT_ID,

0 commit comments

Comments
 (0)