cf.active_storage_url

cf.active_storage_url(*arg)[source]

The URL location of the active storage reducer.

Added in version 3.16.3.

Parameters:
arg: str or None or Constant, optional

Provide a value that will apply to all subsequent operations.

Returns:
Constant

The value prior to the change, or the current value if no new value was specified.

Examples

>>> print(cf.active_storage_url())
None
>>> with cf.active_storage_url('http://active/storage/location'):
...     print(cf.active_storage_url())
...
'http://active/storage/location'
>>> print(cf.active_storage_url())
None
>>> print(cf.active_storage_url('http://other/location'))
None
>>> cf.active_storage_url()
'http://other/location'