Adjust kube-env.py to use third_party PyYAML

pull/6/head
Zach Loafman 2015-03-10 13:01:30 -07:00
parent 43b1668dae
commit 965f684e2f
2 changed files with 7 additions and 0 deletions

3
.gitignore vendored
View File

@ -44,3 +44,6 @@ network_closure.sh
/third_party/etcd* /third_party/etcd*
.tags* .tags*
# Any compiled python
*.pyc

View File

@ -16,6 +16,10 @@
import os import os
import sys 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 import yaml
def mutate_env(path, var, value): def mutate_env(path, var, value):