Skip to content

[vm_set] fix ansible condition in vm_set role#1707

Merged
lguohan merged 1 commit intosonic-net:masterfrom
stepanblyschak:fix_vm_num
May 28, 2020
Merged

[vm_set] fix ansible condition in vm_set role#1707
lguohan merged 1 commit intosonic-net:masterfrom
stepanblyschak:fix_vm_num

Conversation

@stepanblyschak
Copy link
Contributor

VM_num > 0 is evaluated to True if passed '-e VM_num="0"', cast it to
int explicitely to fix the issue.

Signed-off-by: Stepan Blyschak [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

VM_num > 0 is evaluated to True if passed '-e VM_num="0"', cast it to
int explicitely to fix the issue.

Signed-off-by: Stepan Blyschak <[email protected]>
@stepanblyschak stepanblyschak requested a review from lguohan May 28, 2020 13:59
@lguohan lguohan merged commit 52a7d94 into sonic-net:master May 28, 2020
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
d2baedb Remove exec from platform_reboot_plugin call to handle any hang issue. (sonic-net#1879)
c54da70 [fstrim] limit smartctl execution time to 30 seconds (sonic-net#1850)
cccf845 [multi-asic][cli][chassis-db] Avoid connecting to chassis db for cli commands executed from linecard (sonic-net#1707)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants