~brendan-donegan/maas/qa-lab-tests_juju2_tests

« back to all changes in this revision

Viewing changes to maas-integration.py

  • Committer: Brendan Donegan
  • Date: 2016-06-10 00:07:24 UTC
  • Revision ID: brendan.donegan@canonical.com-20160610000724-4zomuox1hgpfmp3x
Accidently removed write flag from credentials.yaml

Show diffs side-by-side

added added

removed removed

Lines of Context:
994
994
        self.assertThat(list_clouds_output, Contains("local:testmaas"))
995
995
        # Setup credentials
996
996
        with open(os.path.expanduser(
997
 
            '~/.local/share/juju/credentials.yaml'), encoding='utf8') as credentials:
 
997
            '~/.local/share/juju/credentials.yaml'), mode='w', encoding='utf8') as credentials:
998
998
            setup_juju_authentication(oauth=token_str, credentials_yaml=credentials)
999
999
        list_creds_output = self._run_juju_command(
1000
1000
            ['list-credentials']