mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
core update ec2 fix
This commit is contained in:
1 parent
c79bff2641
commit
8a7d235ef2
1 file changed
+2
-2
+2
-2
@@ -739,7 +739,7 @@ int Host::post_update_template(string& error)
|
||||
|
||||
get_template_attribute("EC2_ACCESS", ec2_access);
|
||||
|
||||
if (!ec2_access.empty())
|
||||
if (!ec2_access.empty() && ec2_access.size() <= 21)
|
||||
{
|
||||
nebula_crypt(ec2_access, crypted);
|
||||
|
||||
@@ -748,7 +748,7 @@ int Host::post_update_template(string& error)
|
||||
|
||||
get_template_attribute("EC2_SECRET", ec2_secret);
|
||||
|
||||
if (!ec2_secret.empty())
|
||||
if (!ec2_secret.empty() && ec2_secret.size() <= 41)
|
||||
{
|
||||
nebula_crypt(ec2_secret, crypted);
|
||||
|
||||
|
||||
Reference in new issue
Block a user