You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/sachin/collections/tryout/powerscale_scripts/event_channel.py", line 159, in <module>
parameters = isilon_sdk.v9_5_0.EventChannelParameters(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sachin/.local/lib/python3.11/site-packages/isilon_sdk/v9_5_0/models/event_channel_parameters.py", line 87, in __init__
self.custom_template = custom_template
^^^^^^^^^^^^^^^^^^^^
File "/home/sachin/.local/lib/python3.11/site-packages/isilon_sdk/v9_5_0/models/event_channel_parameters.py", line 209, in custom_template
raise ValueError("Invalid value for `custom_template`, must be a follow pattern or equal to `/^((\/[^\/[:cntrl:]]+)(\/?))*$/`") # noqa: E501
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Invalid value for `custom_template`, must be a follow pattern or equal to `/^((\/[^\/[:cntrl:]]+)(\/?))*$/`
Expected
Create event channel as the input "/ifs/data/" is a correct input for the field "custom_template".
The text was updated successfully, but these errors were encountered:
The Issue is because of the regex used '^((\/[^\/[:cntrl:]]+)(\/?))*$'
Python regex library is not recognising [:cntrl:] as control parameters, but is just considering as a regular text matching c t r l and hence the SDK is throwing error.
I encountered the same error while attempting to retrieve the details of the ADS provider using this method: Isilon SDK v0.3.0.1 AuthApi. The call fails with the following error:
ValueError: Invalid value for home_directory_template, must follow a pattern or be equal to /^((\/[^\/[:cntrl:]]+)(\/?))*$/.
However, this method works in SDK version 9.1, as referenced here.
While creating a event channel, when a path is specified for custom template field it fails with an error as regex is not matching.
Run the script with a below code where custom_template field is given an input as "/ifs/data"
Actual
Fails with an error as below
Expected
Create event channel as the input "/ifs/data/" is a correct input for the field "custom_template".
The text was updated successfully, but these errors were encountered: