Skip to content

Commit

Permalink
#50 Fixed credential name dose not show after using put-file command
Browse files Browse the repository at this point in the history
Signed-off-by: ChouAndy <chouandy@ecoworkinc.com>
  • Loading branch information
ecowork-andy committed Oct 11, 2016
1 parent 3c288d0 commit f62b4ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/unicreds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func main() {
if err != nil {
printFatalError(err)
}
log.WithFields(log.Fields{"name": *cmdPutName, "version": version}).Info("stored")
log.WithFields(log.Fields{"name": *cmdPutFileName, "version": version}).Info("stored")
case cmdList.FullCommand():
creds, err := unicreds.ListSecrets(dynamoTable, *cmdListAllVersions)
if err != nil {
Expand Down
28 changes: 28 additions & 0 deletions mocks/DynamoDBAPI.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,3 +736,31 @@ func (_m *DynamoDBAPI) UpdateTable(_a0 *dynamodb.UpdateTableInput) (*dynamodb.Up

return r0, r1
}

// WaitUntilTableExists provides a mock function with given fields: _a0
func (_m *DynamoDBAPI) WaitUntilTableExists(_a0 *dynamodb.DescribeTableInput) error {
ret := _m.Called(_a0)

var r0 error
if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}

return r0
}

// WaitUntilTableNotExists provides a mock function with given fields: _a0
func (_m *DynamoDBAPI) WaitUntilTableNotExists(_a0 *dynamodb.DescribeTableInput) error {
ret := _m.Called(_a0)

var r0 error
if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}

return r0
}

0 comments on commit f62b4ff

Please sign in to comment.