Skip to content

Commit

Permalink
fix #113
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbalderrama committed Apr 10, 2018
1 parent 48fd83a commit ff86f39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions orchestrator/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from abc import ABCMeta, abstractmethod
from os import path

from enoslib.api import run_ansible, generate_inventory, emulate_network, validate_network
from enoslib.errors import EnosError
from enoslib.api import run_ansible, generate_inventory, emulate_network, validate_network, reset_network
from enoslib.infra.enos_chameleonkvm.provider import Chameleonkvm
from enoslib.infra.enos_g5k.provider import G5k
from enoslib.infra.enos_vagrant.provider import Enos_vagrant
Expand Down Expand Up @@ -703,8 +702,9 @@ def validate(**kwargs):
@enostask()
def reset(**kwargs):
env = kwargs["env"]
# TODO expose this feature in enostask
raise EnosError()
_inventory = env["inventory"]
roles = env["roles"]
reset_network(roles, _inventory)


@enostask()
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ project_urls =
Bug Reports = https://github.com/msimonin/ombt-orchestrator/issues
Source = https://github.com/msimonin/ombt-orchestrator/
classifier =
Development Status :: 3 - Alpha
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
Intended Audience :: Information Technology
Expand All @@ -36,7 +36,7 @@ install_requires =
pathlib2; python_version<"3"
networkx==2.1
click>=6.7,<7
enoslib>=1.0.0
enoslib>=1.0.1

[options.packages.find]
exclude =
Expand Down

0 comments on commit ff86f39

Please sign in to comment.