check if api:client is present (#867)
This commit is contained in:
parent
535f0353df
commit
34a4371dde
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ cscli machines add MyTestMachine --password MyPassword
|
|||
/*check if file already exists*/
|
||||
if outputFile != "" {
|
||||
dumpFile = outputFile
|
||||
} else if csConfig.API.Client.CredentialsFilePath != "" {
|
||||
} else if csConfig.API.Client != nil && csConfig.API.Client.CredentialsFilePath != "" {
|
||||
dumpFile = csConfig.API.Client.CredentialsFilePath
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue