695
695
"""Create a ContextManager for either a MAASAccount or a MAAS1Account.
697
697
As it's not possible to tell from the maas config which version of the api
698
698
to use, try 2.0 and if that fails on login fallback to 1.0 instead.
701
702
manager = MAASAccount(*args)