Skip to content

Commit fa6c638

Browse files
authored
Fix metadata print in list hmac keys
1 parent fccb192 commit fa6c638

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/src/list_hmac_keys.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function list_hmac_keys($projectId)
3939
$hmacKeys = $storage->hmacKeys(['projectId' => $projectId]);
4040

4141
foreach ($hmacKeys as $hmacKey) {
42-
printf('HMAC key Metadata: %s' . PHP_EOL, print_r($hmacKey->info(), true));
42+
printf('Service Account Email: %s' . PHP_EOL, $hmacKey['metadata']['serviceAccountEmail']);
43+
printf('Access Id: %s' . PHP_EOL, $hmacKey['metadata']['accessId']);
4344
}
4445
}
4546
# [END storage_list_hmac_keys]

0 commit comments

Comments
 (0)