Skip to content

Instantly share code, notes, and snippets.

@damiankloip
Created March 14, 2014 10:21
Show Gist options
  • Save damiankloip/9545295 to your computer and use it in GitHub Desktop.
Save damiankloip/9545295 to your computer and use it in GitHub Desktop.
diff --git a/docroot/sites/all/modules/custom/cci_cloud/cci_cloud.install b/docroot/sites/all/modules/custom/cci_cloud/cci_cloud.install
index 6e25d2b..6d065db 100644
--- a/docroot/sites/all/modules/custom/cci_cloud/cci_cloud.install
+++ b/docroot/sites/all/modules/custom/cci_cloud/cci_cloud.install
@@ -85,6 +85,7 @@ function cci_cloud_schema() {
'data' => array(
'description' => 'Any additional data required',
'type' => 'blob',
+ 'serialize' => TRUE,
),
),
'primary key' => array('id'),
diff --git a/docroot/sites/all/modules/custom/cci_cloud/lib/Drupal/cci_cloud/Ssh/UserKeyHostingTarget.php b/docroot/sites/all/modules/custom/cci_cloud/lib/Drupal/cci_cloud/Ssh/UserKeyHostingTarget.php
index 8713ccd..1146f93 100644
--- a/docroot/sites/all/modules/custom/cci_cloud/lib/Drupal/cci_cloud/Ssh/UserKeyHostingTarget.php
+++ b/docroot/sites/all/modules/custom/cci_cloud/lib/Drupal/cci_cloud/Ssh/UserKeyHostingTarget.php
@@ -193,7 +193,7 @@ class UserKeyHostingTarget {
'created' => REQUEST_TIME,
'attempts' => ($error['attempts'] + 1),
'action' => $action,
- 'data' => serialize($data),
+ 'data' => $data,
) + $error;
}
else {
@@ -204,7 +204,7 @@ class UserKeyHostingTarget {
'attempts' => 1,
'action' => $action,
'message' => $message,
- 'data' => serialize($data),
+ 'data' => $data,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment