~veebers/juju-ci-tools/add-smart-formatter-flag-1615051

« back to all changes in this revision

Viewing changes to jujupy.py

  • Committer: Leo Zhang
  • Date: 2016-08-17 20:53:38 UTC
  • mfrom: (1556.2.3 acl-refine2)
  • Revision ID: leo.zhang@canonical.com-20160817205338-y3ak3mockjpkxf3f
changes after review

Show diffs side-by-side

added added

removed removed

Lines of Context:
1958
1958
        else:
1959
1959
            raise
1960
1960
 
 
1961
    def list_clouds(self, format='json'):
 
1962
        """List all the available clouds."""
 
1963
        return self.get_juju_output('list-clouds', '--format',
 
1964
                                    format, include_e=False)
 
1965
 
 
1966
    def show_controller(self, format='json'):
 
1967
        """Show controller's status."""
 
1968
        return self.get_juju_output('show-controller', '--format',
 
1969
                                    format, include_e=False)
 
1970
 
1961
1971
 
1962
1972
class EnvJujuClient2B9(EnvJujuClient):
1963
1973
 
2198
2208
        """List the models registered with the current controller."""
2199
2209
        log.info('The model is environment {}'.format(self.env.environment))
2200
2210
 
 
2211
    def list_clouds(self, format='json'):
 
2212
        """List all the available clouds."""
 
2213
        return {}
 
2214
 
 
2215
    def show_controller(self, format='json'):
 
2216
        """Show controller's status."""
 
2217
        return {}
 
2218
 
2201
2219
    def get_models(self):
2202
2220
        """return a models dict with a 'models': [] key-value pair."""
2203
2221
        return {}