@@ -110,7 +110,7 @@ unique_ptr<utils::DataVector<uint8_t>> AWS::downloadIAMUser() const
110110unique_ptr<utils::DataVector<uint8_t >> AWS::downloadSecret (string_view content, string& iamUser)
111111// Builds the secret http request
112112{
113- auto pos = content.find (" \n " );
113+ auto pos = content.find (' \n ' );
114114 string httpHeader = " GET /latest/meta-data/iam/security-credentials/" ;
115115 if (!content.substr (0 , pos).size ())
116116 return nullptr ;
@@ -132,31 +132,31 @@ bool AWS::updateSecret(string_view content, string_view iamUser)
132132 if (pos == content.npos )
133133 return false ;
134134 pos += needle.length ();
135- auto end = content.find (" \" " , pos);
135+ auto end = content.find (' \" ' , pos);
136136 secret->keyId = content.substr (pos, end - pos);
137137
138138 needle = " \" SecretAccessKey\" : \" " ;
139139 pos = content.find (needle);
140140 if (pos == content.npos )
141141 return false ;
142142 pos += needle.length ();
143- end = content.find (" \" " , pos);
143+ end = content.find (' \" ' , pos);
144144 secret->secret = content.substr (pos, end - pos);
145145
146146 needle = " \" Token\" : \" " ;
147147 pos = content.find (needle);
148148 if (pos == content.npos )
149149 return false ;
150150 pos += needle.length ();
151- end = content.find (" \" " , pos);
151+ end = content.find (' \" ' , pos);
152152 secret->token = content.substr (pos, end - pos);
153153
154154 needle = " \" Expiration\" : \" " ;
155155 pos = content.find (needle);
156156 if (pos == content.npos )
157157 return false ;
158158 pos += needle.length ();
159- end = content.find (" \" " , pos);
159+ end = content.find (' \" ' , pos);
160160 auto sv = content.substr (pos, end - pos);
161161 string timestamp (sv.begin (), sv.end ());
162162 secret->expiration = convertIAMTimestamp (timestamp);
0 commit comments