diff --git a/pkg/hostman/storageman/storage_agent.go b/pkg/hostman/storageman/storage_agent.go index 63c8be1754..14b07314fb 100644 --- a/pkg/hostman/storageman/storage_agent.go +++ b/pkg/hostman/storageman/storage_agent.go @@ -246,7 +246,7 @@ func (as *SAgentStorage) AgentDeployGuest(ctx context.Context, data interface{}) rootPath := disks[0].(*esxi.SVirtualDisk).GetFilename() key := deployapi.SSHKeys{} - err = dataDict.Unmarshal(&key, "desc") + err = dataDict.Unmarshal(&key) if err != nil { return nil, errors.Wrapf(err, "%s: unmarshal to deployapi.SSHKeys", hostutils.ParamsError.Error()) }