From 82d24c14c2ff5dbd091344d1bc24a54395639b15 Mon Sep 17 00:00:00 2001 From: Mark Bolton Date: Thu, 22 Aug 2024 17:05:07 -0700 Subject: [PATCH] lxd/migration: Add comments for exported variables for linter Signed-off-by: Mark Bolton --- lxd/migration/utils.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lxd/migration/utils.go b/lxd/migration/utils.go index 46cb687c71b4..02fdac8c5aa8 100644 --- a/lxd/migration/utils.go +++ b/lxd/migration/utils.go @@ -138,7 +138,12 @@ const ( ) var ( + // ErrNoLiveMigrationSource indicates that CRIU is not installed on the source. ErrNoLiveMigrationSource = fmt.Errorf("%s CRIU isn't installed on the source server. %s on the source server", unableToLiveMigrate, toMigrateLive) + + // ErrNoLiveMigrationTarget indicates that CRIU is not installed on the target. ErrNoLiveMigrationTarget = fmt.Errorf("%s CRIU isn't installed on the target server. %s on the target server", unableToLiveMigrate, toMigrateLive) - ErrNoLiveMigration = fmt.Errorf("%s CRIU isn't installed. %s", unableToLiveMigrate, toMigrateLive) + + // ErrNoLiveMigration indicates that CRIU is not installed. + ErrNoLiveMigration = fmt.Errorf("%s CRIU isn't installed. %s", unableToLiveMigrate, toMigrateLive) )