Skip to content

Commit d2c686c

Browse files
author
Liu, Xiaopeng (133)
committed
debug print
1 parent 99986de commit d2c686c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chaosaws/ec2_os/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .probes import describe_os_type
1313
from .constants import OS_LINUX, OS_WINDOWS
1414
from .constants import BURN_CPU, FILL_DISK, NETWORK_UTIL, \
15-
BURN_IO, SSMDEFAULTNETWORKLAGACY, KILLALL_PROCESSES, KILL_PROCESS
15+
BURN_IO, SSMDEFAULTNETWORKLAGACY, KILLALL_PROCESSES, KILL_PROCESS, RUN_CMD
1616

1717
__all__ = ["burn_cpu", "fill_disk", "network_latency", "burn_io",
1818
"network_loss", "network_corruption", "network_advanced",
@@ -527,7 +527,7 @@ def run_cmd(instance_ids: List[str] = None,
527527
__linux_from_default(instance_id=instance,
528528
configuration=configuration,
529529
secrets=secrets,
530-
action=BURN_CPU,
530+
action=RUN_CMD,
531531
parameters=param)
532532
)
533533
return response

chaosaws/ec2_os/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
KILLALL_PROCESSES = "killall_processes"
1111
KILL_PROCESS = "kill_process"
1212
GREP_PROCESS = "grep_pid"
13+
RUN_CMD = "run_cmd"
1314

1415
# general default SSM lag
1516
SSMDEFAULTNETWORKLAGACY = 10

0 commit comments

Comments
 (0)