Skip to content

Commit

Permalink
Merge pull request #204 from stratosphereips:fix-detection
Browse files Browse the repository at this point in the history
Fix-detection
  • Loading branch information
eldraco authored Apr 11, 2024
2 parents 8af56c4 + 339db94 commit 36a6448
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def _process_generic_action(self, agent_addr: tuple, action: Action) -> dict:
action="store",
required=False,
type=str,
default="env/netsecenv_conf.yaml",
)

args = parser.parse_args()
Expand Down
1 change: 1 addition & 0 deletions env/network_security_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ def step(self, action:components.Action, action_type='netsecenv')-> components.O

# 1. Perform the action
if random.random() <= action.type.default_success_p or action_type == 'realworld':
self._actions_played.append(action)
next_state = self._execute_action(self._current_state, action, action_type=action_type)
else:
logger.info("\tAction NOT sucessful")
Expand Down

0 comments on commit 36a6448

Please sign in to comment.