becky_cli/becky/backups/backup_manager.py
def add_parameter(self, cli_args):
        """
        Used to add a provider/scanner parameter.
        """
        backup = self.get_backup(cli_args['name'])
        if cli_args['type'] == 'provider':
            backup.add_provider_param(cli_args['key'], cli_args['value'])
        elif cli_args['type'] == 'scanner':
            backup.add_scanner_param(cli_args['key'], cli_args['value'])
        elif cli_args['type'] == 'backup':
            backup.add_param(cli_args['key'], cli_args['value'])
        else:
            print("Wrong type for param!")
            return
        backup.save()
        print(f"Param {cli_args['key']} added successfully.")

        Used to add a provider/scanner parameter.
        
Used to add a provider/scanner parameter.
Used to add a provider / scanner parameter .
def add_parameter(self, cli_args):
        backup = self.get_backup(cli_args['name'])
        if cli_args['type'] == 'provider':
            backup.add_provider_param(cli_args['key'], cli_args['value'])
        elif cli_args['type'] == 'scanner':
            backup.add_scanner_param(cli_args['key'], cli_args['value'])
        elif cli_args['type'] == 'backup':
            backup.add_param(cli_args['key'], cli_args['value'])
        else:
            print("Wrong type for param!")
            return
        backup.save()
        print(f"Param {cli_args['key']} added successfully.")
def add_parameter ( self , cli_args ) : backup = self . get_backup ( cli_args [ 'name' ] ) if cli_args [ 'type' ] == 'provider' : backup . add_provider_param ( cli_args [ 'key' ] , cli_args [ 'value' ] ) elif cli_args [ 'type' ] == 'scanner' : backup . add_scanner_param ( cli_args [ 'key' ] , cli_args [ 'value' ] ) elif cli_args [ 'type' ] == 'backup' : backup . add_param ( cli_args [ 'key' ] , cli_args [ 'value' ] ) else : print ( "Wrong type for param!" ) return backup . save ( ) print ( f"Param {cli_args['key']} added successfully." )
Used to add a provider/scanner parameter.
Used to add a provider / scanner parameter .
"""
        Used to add a provider/scanner parameter.
        """
self
cli_args