Merge changes I39b56689,I7b428b06,I893c0fd0,I772cc9b0
* changes: AccountSshKey: Split common getter code to utility method AccountSshKey.Id: Add isValid() method InitAdminUser: Fix invalid sequence number for SSH key Fix migration of SSH keys with invalid sequence numbers (<= 0)
This commit is contained in:
@@ -164,6 +164,6 @@ public class InitAdminUser implements InitStep {
|
||||
"Cannot add public SSH key: %s is not a file", keyFile));
|
||||
}
|
||||
String content = new String(Files.readAllBytes(p), UTF_8);
|
||||
return new AccountSshKey(new AccountSshKey.Id(id, 0), content);
|
||||
return new AccountSshKey(new AccountSshKey.Id(id, 1), content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user