Skip to content

Commit

Permalink
Adjust kube-env.py to use third_party PyYAML
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerlynn committed Mar 10, 2015
1 parent 43b1668 commit 965f684
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ network_closure.sh
/third_party/etcd*

.tags*

# Any compiled python
*.pyc
4 changes: 4 additions & 0 deletions cluster/gce/kube-env.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

import os
import sys

filedir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(
0, os.path.normpath(os.path.join(filedir, "../../third_party/PyYAML/lib")))
import yaml

def mutate_env(path, var, value):
Expand Down

0 comments on commit 965f684

Please sign in to comment.