Hi Andrew,
Can you please try to apply the following change in src/maascli/cli.py?
parser.add_argument( "--cacerts", help="Certificate CA file in PEM format", - type=argparse.FileType(), + type=argparse.FileType('r', encoding='UTF-8'), )
The easiest way to test it would be:
> cd /tmp > cp /snap/maas/current/lib/python3.10/site-packages/maascli/cli.py . > sudo mount -o bind,ro /tmp/cli.py /snap/maas/current/lib/python3.10/site-packages/maascli/cli.py > sudo snap restart maas
Hi Andrew,
Can you please try to apply the following change in src/maascli/cli.py?
- type=argparse.
+ type=argparse.
)
The easiest way to test it would be:
> cd /tmp current/ lib/python3. 10/site- packages/ maascli/ cli.py . current/ lib/python3. 10/site- packages/ maascli/ cli.py
> cp /snap/maas/
> sudo mount -o bind,ro /tmp/cli.py /snap/maas/
> sudo snap restart maas