Skip to content

Commit

Permalink
Commit fix a bug alibaba#287: fix kmskey_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya-skw committed Nov 27, 2020
1 parent 2002daf commit 9cb5aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/alicloud/ali_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_disk_detail(disk):
'type': disk.type,
'instance_id': disk.instance_id,
'encrypted': disk.encrypted,
'kms_key_id': disk.k_m_s_key_id,
'kms_key_id': disk.kmskey_id,
}


Expand Down Expand Up @@ -328,7 +328,7 @@ def main():
current_disk = ecs.create_disk(zone_id=zone_id, disk_name=disk_name,
description=description, disk_category=disk_category, size=size,
disk_tags=disk_tags, snapshot_id=snapshot_id, client_token=client_token,
encrypted=encrypted, k_m_s_key_id=kms_key_id)
encrypted=encrypted, kmskey_id=kms_key_id)
changed = True
except Exception as e:
module.fail_json(msg='Creating a new disk is failed, error: {0}'.format(e))
Expand Down

0 comments on commit 9cb5aa9

Please sign in to comment.