mirror of https://github.com/k3s-io/k3s
Adjust kube-env.py to use third_party PyYAML
parent
43b1668dae
commit
965f684e2f
|
@ -44,3 +44,6 @@ network_closure.sh
|
|||
/third_party/etcd*
|
||||
|
||||
.tags*
|
||||
|
||||
# Any compiled python
|
||||
*.pyc
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue