Pure-Storage-Ansible / Fusion-Collection

Ansible Collection for Pure Fusion
GNU General Public License v3.0
5 stars 11 forks source link

Allow leading zeros in duration strings #146

Closed andreepyro closed 1 year ago

andreepyro commented 1 year ago
SUMMARY

Allow leading zeros in duration strings.

ISSUE TYPE
COMPONENT NAME
sdodsley commented 1 year ago

Why would we want to add leading zeros? Is there some response from a module that could be used as a parameter to another module that has leading zeros?

andreepyro commented 1 year ago

@sdodsley

Why would we want to add leading zeros? Is there some response from a module that could be used as a parameter to another module that has leading zeros?

ISO8601 allows leading zeros, and our Terraform client does as well. We want to be consistent across clients. Moreover, the function has been accepting 01, but couldn't accept 01m, which was inconsistent.