~openstack-charmers-archive/charms/precise/glance/trunk

« back to all changes in this revision

Viewing changes to charmhelpers/cli/__init__.py

  • Committer: Liam Young
  • Date: 2016-01-28 09:03:45 UTC
  • Revision ID: liam.young@canonical.com-20160128090345-nocag3q2wcrj6xjn
16.01 Charm release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from six.moves import zip
22
22
 
23
 
from charmhelpers.core import unitdata
 
23
import charmhelpers.core.unitdata
24
24
 
25
25
 
26
26
class OutputFormatter(object):
163
163
        if getattr(arguments.func, '_cli_no_output', False):
164
164
            output = ''
165
165
        self.formatter.format_output(output, arguments.format)
166
 
        if unitdata._KV:
167
 
            unitdata._KV.flush()
 
166
        if charmhelpers.core.unitdata._KV:
 
167
            charmhelpers.core.unitdata._KV.flush()
168
168
 
169
169
 
170
170
cmdline = CommandLine()