control: Fix controller CLI handling with distributed server object layer.

Object layer initialization is done lazily fix it.
This commit is contained in:
Harshavardhana
2016-08-18 14:50:50 -07:00
parent 8797952409
commit bb0466f4ce
10 changed files with 20 additions and 13 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package main
package cmd
import (
"errors"
@@ -88,7 +88,7 @@ func loginRPCClient(rpcClient *RPCClient) (tokenStr string, err error) {
}, &reply); err != nil {
return "", err
}
if reply.ServerVersion != minioVersion {
if reply.ServerVersion != Version {
return "", errors.New("Server version mismatch")
}
// Reply back server provided token.