Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Add possibility to unset profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Kleinhans authored Sep 19, 2016
1 parent 6b90249 commit 6075069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/StackFormation/Profile/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public function getClient($client, $profile=null, array $args=[]) {
if (!is_string($client)) {
throw new \InvalidArgumentException('Client parameter must be a string');
}
if (getenv('AWS_UNSET_PROFILE')) {
$profile = '';
}
if (!is_null($profile) && !is_string($profile)) {
throw new \InvalidArgumentException('Profile parameter must be a string');
}
Expand Down

0 comments on commit 6075069

Please sign in to comment.