mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
allow_no_ip_sg: Allow user to not supply ipaddress or securitygroups when running boto_efs.create_mount_target
Change-Id: I558de2e80e71399a442913f33fc69b5d84490361
This commit is contained in:
parent
4c1d931654
commit
f58256802a
1 changed files with 17 additions and 4 deletions
|
@ -223,10 +223,23 @@ def create_mount_target(filesystemid,
|
|||
|
||||
client = _get_conn(key=key, keyid=keyid, profile=profile, region=region)
|
||||
|
||||
return client.create_mount_point(FileSystemId=filesystemid,
|
||||
SubnetId=subnetid,
|
||||
IpAddress=ipaddress,
|
||||
SecurityGroups=securitygroups)
|
||||
if ipaddress is None and securitygroups is None:
|
||||
return client.create_mount_target(FileSystemId=filesystemid,
|
||||
SubnetId=subnetid)
|
||||
|
||||
if ipaddress is None:
|
||||
return client.create_mount_target(FileSystemId=filesystemid,
|
||||
SubnetId=subnetid,
|
||||
SecurityGroups=securitygroups)
|
||||
if securitygroups is None:
|
||||
return client.create_mount_target(FileSystemId=filesystemid,
|
||||
SubnetId=subnetid,
|
||||
IpAddress=ipaddress)
|
||||
|
||||
return client.create_mount_target(FileSystemId=filesystemid,
|
||||
SubnetId=subnetid,
|
||||
IpAddress=ipaddress,
|
||||
SecurityGroups=securitygroups)
|
||||
|
||||
|
||||
def create_tags(filesystemid,
|
||||
|
|
Loading…
Add table
Reference in a new issue