| 614 | ) |
| 615 | |
| 616 | def _emit_session_event(self, parsed_args): |
| 617 | # This event is guaranteed to run after the session has been |
| 618 | # initialized and a profile has been set. This was previously |
| 619 | # problematic because if something in CLIDriver caused the |
| 620 | # session components to be reset (such as session.profile = foo) |
| 621 | # then all the prior registered components would be removed. |
| 622 | self.session.emit( |
| 623 | 'session-initialized', |
| 624 | session=self.session, |
| 625 | parsed_args=parsed_args, |
| 626 | ) |
| 627 | |
| 628 | def _show_error(self, msg): |
| 629 | LOG.debug(msg, exc_info=True) |