Skip to content

Import of PolicyPatch fails #247

@Scriptiee

Description

@Scriptiee

py-pure-client 1.82.0 fails when attempting to import PolicyPatch with the below error:

Python 3.11.9 (main, Apr  2 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pypureclient.flashblade import PolicyPatch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/lib/python3.11/site-packages/pypureclient/flashblade/__init__.py", line 38, in __getattr__
    raise ImportError(f'module {__package__} has no attribute {name}')
ImportError: module pypureclient.flashblade has no attribute PolicyPatch

This causes the purestorage.flashblade ansible module fail to recognise py-pure-client as being installed

https://github.com/Pure-Storage-Ansible/FlashBlade-Collection/blob/cc68a1d77a65cccc1680c43cbd3250f725fc234c/plugins/modules/purefb_policy.py#L601

I created issue on the ansible module repository as well as not sure which of these is responsible.

Pure-Storage-Ansible/FlashBlade-Collection#481

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions