stellar/command.py
def rename(old_name, new_name):
    """Renames a snapshot"""
    app = get_app()

    snapshot = app.get_snapshot(old_name)
    if not snapshot:
        click.echo("Couldn't find snapshot %s" % old_name)
        sys.exit(1)

    new_snapshot = app.get_snapshot(new_name)
    if new_snapshot:
        click.echo("Snapshot with name %s already exists" % new_name)
        sys.exit(1)

    app.rename_snapshot(snapshot, new_name)
    click.echo("Renamed snapshot %s to %s" % (old_name, new_name))
def rename(old_name, new_name):
    app = get_app()

    snapshot = app.get_snapshot(old_name)
    if not snapshot:
        click.echo("Couldn't find snapshot %s" % old_name)
        sys.exit(1)

    new_snapshot = app.get_snapshot(new_name)
    if new_snapshot:
        click.echo("Snapshot with name %s already exists" % new_name)
        sys.exit(1)

    app.rename_snapshot(snapshot, new_name)
    click.echo("Renamed snapshot %s to %s" % (old_name, new_name))
def rename ( old_name , new_name ) : app = get_app ( ) snapshot = app . get_snapshot ( old_name ) if not snapshot : click . echo ( "Couldn't find snapshot %s" % old_name ) sys . exit ( 1 ) new_snapshot = app . get_snapshot ( new_name ) if new_snapshot : click . echo ( "Snapshot with name %s already exists" % new_name ) sys . exit ( 1 ) app . rename_snapshot ( snapshot , new_name ) click . echo ( "Renamed snapshot %s to %s" % ( old_name , new_name ) )
Renames a snapshot
Renames a snapshot