Revision 1d0f1ffa kamaki/cli/commands/snf-astakos.py

b/kamaki/cli/commands/snf-astakos.py
421 421
    @errors.generic.all
422 422
    @astakoserror
423 423
    def _run(self):
424
        print 'accepted ', self['accept']
425
        print 'rejected ', self['reject']
424
        self.writeln('accepted ', self['accept'])
425
        self.writeln('rejected ', self['reject'])
426 426
        self._print(
427 427
            self.client.resolve_commissions(
428 428
                self.token, self['accept'], self['reject']),
......
506 506
def apply_notification(foo):
507 507
    def wrap(self, *args, **kwargs):
508 508
        r = foo(self, *args, **kwargs)
509
        print 'Application is submitted successfully'
509
        self.writeln('Application is submitted successfully')
510 510
        return r
511 511
    return wrap
512 512

  
......
811 811
    @errors.generic.all
812 812
    @astakoserror
813 813
    def _run(self, project_id):
814
        print self.client.join_project(self.token, project_id)
814
        self.writeln(self.client.join_project(self.token, project_id))
815 815

  
816 816
    def main(self, project_id):
817 817
        super(project_membership_join, self)._run()
......
825 825
    @errors.generic.all
826 826
    @astakoserror
827 827
    def _run(self, project_id, email):
828
        print self.client.enroll_member(self.token, project_id, email)
828
        self.writeln(self.client.enroll_member(self.token, project_id, email))
829 829

  
830 830
    def main(self, project_id, email):
831 831
        super(project_membership_join, self)._run()

Also available in: Unified diff