You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
raiseError::CreateProfileFailure,"Could not create profile #{name.inspect}: already exists"
113
103
else
114
-
puts"updating default profile"
115
-
logger.debug("CipherStash::Client::Profile.create"){"~/.cipherstash/#{name} exists with with Workspace ID: #{default_profile_workspace_id}. Updating default profile to use Workspace ID: #{incoming_workspace_id}."}
104
+
logger.debug("CipherStash::Client::Profile.create"){"~/.cipherstash/#{name} created with Workspace ID: #{default_profile_workspace_id}. Updating #{name} profile to use Workspace ID: #{incoming_workspace_id}."}
116
105
end
117
106
else
118
107
raiseError::CreateProfileFailure,"Could not create profile #{name.inspect}: already exists"
119
108
end
120
-
# The default profile name coming through from ActiveStash will be "default" if an env var is not provided for CS_PROFILE_NAME
121
-
# A user could provide a workspace id at login that is different to the workspace id in the default profile
122
-
# Which will mean, it raises an error here because a default profile already exists.
123
-
# The default profile doesn't get updated.
124
-
# There isn't a way to update the default profile to use the provided workspace id as the default profile.
125
-
126
-
# If name is default
127
-
# Does the provided workspace id align with the workspace id in the default profile.
128
-
# If so, provide error saying profile already exists
129
-
# If not, update default profile to use provided workspace id.
130
109
131
110
rescue=>ex
132
111
raiseError::CreateProfileFailure,"Could not create profile directory ~/.cipherstash/#{name}: #{ex.message} (#{ex.class})"
0 commit comments