Skip to content

Commit 709c358

Browse files
committed
fix: update flashhost's hostname
1 parent 561cab3 commit 709c358

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

fabfile.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,15 @@ def print_file(path):
398398

399399

400400
@task
401-
@hosts("pi@flashhost.lan")
401+
@hosts("pi@flashhost.octo")
402402
def flashhost_release_lock():
403403
"""release flash lock if left set for some reason"""
404404
lock = env.flashhost["flashlock"]
405405
sudo("rm -rf {}".format(lock))
406406

407407

408408
@task
409-
@hosts("pi@flashhost.lan")
409+
@hosts("pi@flashhost.octo")
410410
def flashhost_flash(image, target=None):
411411
"""flashes target with OctoPi image of provided image using dd"""
412412
lockfile = env.flashhost["flashlock"]
@@ -523,7 +523,7 @@ def flashhost_provision_firstrun(target, boot):
523523

524524

525525
@task
526-
@hosts("pi@flashhost.lan")
526+
@hosts("pi@flashhost.octo")
527527
def flashhost_mount(target=None):
528528
if target is None:
529529
target = env.target
@@ -542,7 +542,7 @@ def flashhost_mount(target=None):
542542

543543

544544
@task
545-
@hosts("pi@flashhost.lan")
545+
@hosts("pi@flashhost.octo")
546546
def flashhost_umount(target=None):
547547
if target is None:
548548
target = env.target
@@ -555,7 +555,7 @@ def flashhost_umount(target=None):
555555

556556

557557
@task
558-
@hosts("pi@flashhost.lan")
558+
@hosts("pi@flashhost.octo")
559559
def flashhost_provision(target=None, firstrun=True):
560560
"""provisions target with wifi, hostname, password and boot_delay"""
561561
if target is None:
@@ -583,7 +583,7 @@ def flashhost_provision(target=None, firstrun=True):
583583

584584

585585
@task
586-
@hosts("pi@flashhost.lan")
586+
@hosts("pi@flashhost.octo")
587587
def flashhost_host(target=None):
588588
"""switches target to Host mode (powered off & USB-SD-MUX Host)"""
589589
if target is None:
@@ -605,7 +605,7 @@ def flashhost_host(target=None):
605605

606606

607607
@task
608-
@hosts("pi@flashhost.lan")
608+
@hosts("pi@flashhost.octo")
609609
def flashhost_dut(target=None):
610610
"""switches target to DUT mode (USB-SD-MUX DUT & powered on)"""
611611
if target is None:
@@ -628,7 +628,7 @@ def flashhost_dut(target=None):
628628

629629

630630
@task
631-
@hosts("pi@flashhost.lan")
631+
@hosts("pi@flashhost.octo")
632632
def flashhost_dutstate(target=None):
633633
"""switches target to DUT mode (USB-SD-MUX DUT & powered on)"""
634634
if target is None:
@@ -641,7 +641,7 @@ def flashhost_dutstate(target=None):
641641

642642

643643
@task
644-
@hosts("pi@flashhost.lan")
644+
@hosts("pi@flashhost.octo")
645645
def flashhost_reboot(target=None):
646646
"""powers target off and on again"""
647647
if target is None:
@@ -658,7 +658,7 @@ def flashhost_reboot(target=None):
658658

659659

660660
@task
661-
@hosts("pi@flashhost.lan")
661+
@hosts("pi@flashhost.octo")
662662
def flashhost_flash_and_provision(version, target=None, firstrun=True):
663663
"""runs flash & provision cycle on target for specified OctoPi version"""
664664
if target is None:
@@ -673,7 +673,7 @@ def flashhost_flash_and_provision(version, target=None, firstrun=True):
673673

674674

675675
@task
676-
@hosts("pi@flashhost.lan")
676+
@hosts("pi@flashhost.octo")
677677
def flashhost_list_images():
678678
path = env.flashhost["images"]
679679
print("Available images:")
@@ -689,7 +689,7 @@ def flashhost_list_images():
689689

690690

691691
@task
692-
@hosts("pi@flashhost.lan")
692+
@hosts("pi@flashhost.octo")
693693
def flashhost_fetch_image(url, image):
694694
"""downloads image from url to flashhost images directory"""
695695
path = env.flashhost["images"]
@@ -709,7 +709,7 @@ def flashhost_fetch_image(url, image):
709709

710710

711711
@task
712-
@hosts("pi@flashhost.lan")
712+
@hosts("pi@flashhost.octo")
713713
def flashhost_remove_image(image, ignore_missing=False):
714714
"""removes image from flashhost images directory"""
715715
path = env.flashhost["images"]

0 commit comments

Comments
 (0)