-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed bug with only being able to run in main directory
- Loading branch information
jim xu
committed
Mar 8, 2019
1 parent
6cf3072
commit d3ef105
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import yaml | ||
|
||
AWSInstance = "aws" in list( | ||
yaml.load( | ||
open( | ||
"./test_config.yaml", | ||
"r"))["cloud"].keys()) | ||
GCPInstance = "gcloud" in list( | ||
yaml.load( | ||
open( | ||
"./test_config.yaml", | ||
"r"))["cloud"].keys()) | ||
|
||
|
||
def on_gcp(): | ||
return GCPInstance | ||
|
||
|
||
def on_aws(): | ||
return AWSInstance |