Skip to content

Commit

Permalink
Changes added in bash script of add users to remove credential id fro…
Browse files Browse the repository at this point in the history
…m users table

Signed-off-by: sonali wale <swale@msystechnologies.com>
  • Loading branch information
sonali523 committed Dec 15, 2021
1 parent 415c993 commit fdce512
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .studio/infra-proxy-service
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,14 @@ EOF
timestamp=$(date +%s%N)
local userId="${user_prefix}-${timestamp}-id"
local infraServerUsername="infra-user-${timestamp}"
local credentialId="${user_prefix}-${timestamp}-secrets"
local automateUserId="${user_prefix}-${timestamp}"
chef-automate dev psql -d chef_infra_proxy << EOF
INSERT INTO users (
id, server_id,
infra_server_username,
credential_id,
automate_user_id,
created_at,updated_at)
VALUES ('${userId}', '${server_id}', '${infraServerUsername}', '${credentialId}','${automateUserId}',now(), now())
VALUES ('${userId}', '${server_id}', '${infraServerUsername}','${automateUserId}',now(), now())
EOF
done
log_line "Sample data loaded of $records users for server with server name '$server_prefix' and server id '$server_id'"
Expand Down

0 comments on commit fdce512

Please sign in to comment.