|
@@ -21,7 +21,7 @@ pub struct ServeOpts {
|
|
|
pub keep: bool,
|
|
pub keep: bool,
|
|
|
pub skip_before_serve: bool,
|
|
pub skip_before_serve: bool,
|
|
|
pub dry_run: bool,
|
|
pub dry_run: bool,
|
|
|
- pub power_on_if_off: bool,
|
|
|
|
|
|
|
+ pub auto_power_on: bool,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pub(crate) fn shq(s: &str) -> String {
|
|
pub(crate) fn shq(s: &str) -> String {
|
|
@@ -54,7 +54,7 @@ pub async fn serve(
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
// Check if cluster switch is off and power on if requested
|
|
// Check if cluster switch is off and power on if requested
|
|
|
- if opts.power_on_if_off {
|
|
|
|
|
|
|
+ if opts.auto_power_on {
|
|
|
crate::cluster_power::power_on_cluster_if_off(
|
|
crate::cluster_power::power_on_cluster_if_off(
|
|
|
config,
|
|
config,
|
|
|
&recipe,
|
|
&recipe,
|