def get_old_values(self): if fileoperations.old_eb_config_present() and \ not fileoperations.config_file_present(): old_values = fileoperations.get_values_from_old_eb() region = old_values['region'] access_id = old_values['access_id'] secret_key = old_values['secret_key'] solution_stack = old_values['platform'] app_name = old_values['app_name'] default_env = old_values['default_env'] io.echo(strings['init.getvarsfromoldeb']) if self.region is None: self.region = region if not self.app.pargs.application_name: self.app.pargs.application_name = app_name if self.app.pargs.platform is None: self.app.pargs.platform = solution_stack initializeops.setup_credentials(access_id=access_id, secret_key=secret_key) return default_env return None
def get_old_values(self): if fileoperations.old_eb_config_present() and \ not fileoperations.config_file_present(): old_values = fileoperations.get_values_from_old_eb() region = old_values['region'] access_id = old_values['access_id'] secret_key = old_values['secret_key'] solution_stack = old_values['platform'] app_name = old_values['app_name'] default_env = old_values['default_env'] io.echo(strings['init.getvarsfromoldeb']) if self.region is None: self.region = region if not self.app.pargs.application_name: self.app.pargs.application_name = app_name if self.app.pargs.platform is None: self.app.pargs.platform = solution_stack initializeops.setup_credentials(access_id=access_id, secret_key=secret_key) return default_env return None