Skip to content

ECS Instance exception in version 1.5.0 #7

Description

@ben-denham

Hi there, thanks very much for this useful Ansible provider for Alicloud.

I believe I may have found a bug introduced in ed325de.

When using the ali_instance module of https://github.com/alibaba/ansible-provider version 1.5.0, I receive a TypeError: string indices must be integers, not str for the following line (https://github.com/alibaba/footmark/blob/master/footmark/ecs/instance.py#L249):

if value and value["ip_address"]:

It seems that value is a string rather than a dictionary-like object? In case it is relevant, I have the assign_public_ip parameter of ali_instance set to True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions