Skip to content

Commit e58ec76

Browse files
bnpatel1990DavertMik
authored andcommitted
AWS Rest Config Bug Fix (#4631)
1 parent 49700c5 commit e58ec76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/REST.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,16 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
362362
if (method_exists($this->client, 'setAwsAuth')) {
363363
$config = array_merge($this->config['aws'], $additionalAWSConfig);
364364

365-
if (!isset($this->config['key'])) {
365+
if (!isset($config['key'])) {
366366
throw new ConfigurationException('AWS Key is not set');
367367
}
368-
if (!isset($this->config['secret'])) {
368+
if (!isset($config['secret'])) {
369369
throw new ConfigurationException('AWS Secret is not set');
370370
}
371-
if (!isset($this->config['service'])) {
371+
if (!isset($config['service'])) {
372372
throw new ConfigurationException('AWS Service is not set');
373373
}
374-
if (!isset($this->config['region'])) {
374+
if (!isset($config['region'])) {
375375
throw new ConfigurationException('AWS Region is not set');
376376
}
377377

0 commit comments

Comments
 (0)