fixing yaml file import for junos views
This commit is contained in:
1 parent
8ab55587d2
commit
0673999342
2 files changed
+1
-1
No files matched your search
@@ -1 +1,2 @@
|
|||||||
include requirements.txt
|
include requirements.txt
|
||||||
|
include utils/*.yml
|
||||||
@@ -4,5 +4,4 @@ Load tables/views
|
|||||||
from jnpr.junos.factory import loadyaml
|
from jnpr.junos.factory import loadyaml
|
||||||
from os.path import splitext
|
from os.path import splitext
|
||||||
_YAML_ = splitext(__file__)[0] + '.yml'
|
_YAML_ = splitext(__file__)[0] + '.yml'
|
||||||
print _YAML_
|
|
||||||
globals().update(loadyaml(_YAML_))
|
globals().update(loadyaml(_YAML_))
|
||||||
Reference in new issue
Block a user