...
This commit is contained in:
@@ -33,7 +33,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'actrunner.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure actrunner:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure actrunner, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'actrunner.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
@@ -32,7 +32,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'b2.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure b2:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure b2, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'b2.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'fungistor.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure fungistor:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure fungistor, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'fungistor.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
@@ -39,7 +39,7 @@ pub fn get(args ArgsGet) !&GarageS3 {
|
||||
data := r.hget('context:garage_s3', args.name)!
|
||||
if data.len == 0 {
|
||||
print_backtrace()
|
||||
return error('GarageS3 with name: ${args.name} does not exist, prob bug.')
|
||||
return error('GarageS3 with name: garage_s3 does not exist, prob bug.')
|
||||
}
|
||||
mut obj := json.decode(GarageS3, data)!
|
||||
set_in_mem(obj)!
|
||||
@@ -48,14 +48,14 @@ pub fn get(args ArgsGet) !&GarageS3 {
|
||||
new(args)!
|
||||
} else {
|
||||
print_backtrace()
|
||||
return error("GarageS3 with name '${args.name}' does not exist")
|
||||
return error("GarageS3 with name 'garage_s3' does not exist")
|
||||
}
|
||||
}
|
||||
return get(name: args.name)! // no longer from db nor create
|
||||
}
|
||||
return garage_s3_global[args.name] or {
|
||||
print_backtrace()
|
||||
return error('could not get config for garage_s3 with name:${args.name}')
|
||||
return error('could not get config for garage_s3 with name:garage_s3')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'grafana.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure grafana:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure grafana, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'grafana.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'prometheus.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure prometheus:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure prometheus, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'prometheus.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
@@ -38,7 +38,7 @@ pub fn get(args ArgsGet) !&RClone {
|
||||
data := r.hget('context:rclone', args.name)!
|
||||
if data.len == 0 {
|
||||
print_backtrace()
|
||||
return error('RClone with name: ${args.name} does not exist, prob bug.')
|
||||
return error('RClone with name: rclone does not exist, prob bug.')
|
||||
}
|
||||
mut obj := json.decode(RClone, data)!
|
||||
set_in_mem(obj)!
|
||||
@@ -47,14 +47,14 @@ pub fn get(args ArgsGet) !&RClone {
|
||||
new(args)!
|
||||
} else {
|
||||
print_backtrace()
|
||||
return error("RClone with name '${args.name}' does not exist")
|
||||
return error("RClone with name 'rclone' does not exist")
|
||||
}
|
||||
}
|
||||
return get(name: args.name)! // no longer from db nor create
|
||||
}
|
||||
return rclone_global[args.name] or {
|
||||
print_backtrace()
|
||||
return error('could not get config for rclone with name:${args.name}')
|
||||
return error('could not get config for rclone with name:rclone')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
}
|
||||
mut install_actions := plbook.find(filter: 'restic.configure')!
|
||||
if install_actions.len > 0 {
|
||||
return error("can't configure restic:${args.name}, because no configuration allowed for this installer.")
|
||||
return error("can't configure restic, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'restic.')!
|
||||
for mut other_action in other_actions {
|
||||
|
||||
Reference in New Issue
Block a user