Skip to content

Commit 06316fe

Browse files
authored
Add support for XML in waiters (#1125)
1 parent bb26eaa commit 06316fe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Result/TableExistsWaiter.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ class TableExistsWaiter extends Waiter
1616

1717
protected function extractState(Response $response, ?HttpException $exception): string
1818
{
19-
if (200 === $response->getStatusCode() && 'ACTIVE' === ($response->toArray()['Table']['TableStatus'] ?? null)) {
20-
return self::STATE_SUCCESS;
19+
if (200 === $response->getStatusCode()) {
20+
$a = $response->toArray()['Table']['TableStatus'] ?? null;
21+
if ('ACTIVE' === $a) {
22+
return self::STATE_SUCCESS;
23+
}
2124
}
2225

2326
if (null !== $exception && 'ResourceNotFoundException' === $exception->getAwsCode()) {

0 commit comments

Comments
 (0)