Skip to content

Commit ce055fd

Browse files
author
Hödd
authored
fix for default export policy creation for nfsv3 volume and new test for it along with recordings (#22110)
1 parent b6e90fd commit ce055fd

File tree

3 files changed

+1323
-1
lines changed

3 files changed

+1323
-1
lines changed

src/azure-cli/azure/cli/command_modules/netappfiles/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def create_volume(cmd, client, account_name, pool_name, volume_name, resource_gr
210210
# if NFSv4 is specified then the export policy must reflect this
211211
# the RP ordinarily only creates a default setting NFSv3.
212212
if protocol_types is not None and any(x in ['NFSv3', 'NFSv4.1'] for x in protocol_types) \
213-
and not (protocol_types == 'NFSv3' and rule_index is None):
213+
and not (protocol_types == ['NFSv3'] and rule_index is None):
214214
rules = []
215215
isNfs41 = False
216216
isNfs3 = False

0 commit comments

Comments
 (0)