Skip to content

Commit

Permalink
Merge pull request juju#12163 from ycliuhw/fix/nw-network-spaces-aws
Browse files Browse the repository at this point in the history
Fix remove_machine handling string machine_ids arg;
  • Loading branch information
wallyworld authored Oct 20, 2020
2 parents f120f4c + 1fcae8e commit e0f20aa
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions acceptancetests/jujupy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,28 @@
import json
import logging
import os
import pexpect
import re
import shutil
import six
import subprocess
import sys
import time
import yaml
from collections import (
defaultdict,
namedtuple,
)
from contextlib import (
contextmanager,
)
from collections import defaultdict, namedtuple
from contextlib import contextmanager
from copy import deepcopy
from itertools import chain
from locale import getpreferredencoding

from jujupy.backend import (
JujuBackend,
)
import pexpect
import six
import yaml

from jujupy.backend import JujuBackend
from jujupy.configuration import (
get_bootstrap_config_path,
get_juju_home,
get_selected_environment,
)
from jujupy.controller import (
Controllers,
ControllerConfig,
)
from jujupy.controller import ControllerConfig, Controllers
from jujupy.exceptions import (
AgentsNotStarted,
ApplicationsNotStarted,
Expand All @@ -65,14 +56,10 @@
VotingNotEnabled,
WorkloadsNotReady,
)
from jujupy.status import (
AGENTS_READY,
coalesce_agent_status,
Status,
)
from jujupy.status import AGENTS_READY, Status, coalesce_agent_status
from jujupy.utility import (
_dns_name_for_machine,
JujuResourceTimeout,
_dns_name_for_machine,
pause,
qualified_model_name,
skip_on_missing_file,
Expand Down Expand Up @@ -861,6 +848,7 @@ def remove_machine(self, machine_ids, force=False, controller=False):
:param machine_ids: The ids of the machine to remove.
:return: A WaitMachineNotPresent instance for client.wait_for.
"""
machine_ids = machine_ids.split(',') if isinstance(machine_ids, str) else machine_ids
options = ()
if force:
options = options + ('--force',)
Expand Down

0 comments on commit e0f20aa

Please sign in to comment.