# Buggy code
def create(
    general_config,
    cloudprovider,
    aws_profile,
    remote_provider,
    nucypher_image,
    seed_network,
    sentry_dsn,
    prometheus,
    count,
    namespace,
    network,
):
    """Creates the required number of workers to be staked later under a namespace"""

    emitter = setup_emitter(general_config)

    if not CloudDeployers:
        emitter.echo(
            "Ansible is required to use this command.  (Please run 'pip install ansible'.)",
            color="red",
        )
        return

    deployer = CloudDeployers.get_deployer(cloudprovider)(
        emitter,
        None,
        None,
        remote_provider,
        nucypher_image,
        seed_network,
        sentry_dsn,
        aws_profile,
        prometheus,
        namespace=namespace,
        network=network,
    )
    if not namespace:
        emitter.echo(
            "A namespace is required. Choose something to help differentiate between hosts, such as their specific purpose, or even just today's date.",
            color="red",
        )
        return

    names = []
    i = 1
    while len(names) < count:
        name = f"{namespace}-{network}-{i}"
        if name not in deployer.config.get("instances", {}):
            names.append(name)
        i += 1
    config = deployer.create_nodes(names, unstaked=True)

    if config.get("instances") and len(config.get("instances")) >= count:
        emitter.echo("The requested number of nodes now exist", color="green")
        deployer.deploy_nucypher_on_existing_nodes(names)


# Traceback (TypeError)
Traceback (most recent call last):
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/bin/nucypher", line 33, in <module>
sys.exit(load_entry_point('nucypher', 'console_scripts', 'nucypher')())
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/k/.local/share/virtualenvs/nucypher-iNjwDRsw/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
File "/home/k/Git/nucypher/nucypher/cli/options.py", line 167, in wrapper
return func(**kwargs)
TypeError: add_for_stake() got an unexpected keyword argument 'config_file'

# Fixed code
def create(
    general_config,
    cloudprovider,
    aws_profile,
    remote_provider,
    nucypher_image,
    seed_network,
    prometheus,
    count,
    namespace,
    network,
    envvars,
):
    """Creates the required number of workers to be staked later under a namespace"""

    emitter = setup_emitter(general_config)

    if not CloudDeployers:
        emitter.echo(
            "Ansible is required to use this command.  (Please run 'pip install ansible'.)",
            color="red",
        )
        return

    deployer = CloudDeployers.get_deployer(cloudprovider)(
        emitter,
        None,
        None,
        remote_provider,
        nucypher_image,
        seed_network,
        aws_profile,
        prometheus,
        namespace=namespace,
        network=network,
        envvars=envvars,
    )

    names = []
    i = 1
    while len(names) < count:
        name = f"{namespace}-{network}-{i}"
        if name not in deployer.config.get("instances", {}):
            names.append(name)
        i += 1
    config = deployer.create_nodes(names, unstaked=True)

    if config.get("instances") and len(config.get("instances")) >= count:
        emitter.echo("The requested number of nodes now exist", color="green")
        deployer.deploy_nucypher_on_existing_nodes(names)