# Error on after-reboot script

**URL:** <https://forum.dimagi.com/t/error-on-after-reboot-script/6822>\
**Category:** Developers\
**Created:** [September 7, 2019, 11:26am UTC](https://forum.dimagi.com/t/error-on-after-reboot-script/6822 "2019-09-07T11:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erobinson](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/erobinson/32/2652_2.png) [@erobinson](https://forum.dimagi.com/u/erobinson)\
**Post date:** [September 7, 2019, 11:26am UTC](https://forum.dimagi.com/t/error-on-after-reboot-script/6822/1 "2019-09-07T11:26:03Z")

</div>

I'm consistently getting this error on the after-reboot script:

```
TASK [thp : update grub] ********************************************************************************************************************************************************************
fatal: [197.211.237.144]: FAILED! => {"msg": "The conditional check 'grub_updated is changed' failed. The error was: The 'changed' test expects a dictionary\n\nThe error appears to be in '/home/ccc/commcare-cloud/src/commcare_cloud/ansible/roles/thp/tasks/main.yml': line 40, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: update grub\n ^ here\n"}

```

The contents of the main.yml is as follows (cursor is on line 40, col 3):

 ![image](https://dimagi.b-cdn.net/uploads/default/original/2X/4/4ff5242165f67b642911a771a09ddadf47e78883.png)

Anyone else getting this?

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [September 9, 2019, 8:10am UTC](https://forum.dimagi.com/t/error-on-after-reboot-script/6822/2 "2019-09-09T08:10:53Z")

</div>

I'll take a look Ed.

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [September 10, 2019, 7:33am UTC](https://forum.dimagi.com/t/error-on-after-reboot-script/6822/3 "2019-09-10T07:33:44Z")

</div>

This was a typo which has now been fixed: [fix typo in grub by rohit-dimagi · Pull Request #3242 · dimagi/commcare-cloud · GitHub](https://github.com/dimagi/commcare-cloud/pull/3242)

---

<div class="post-metadata">

**Author:** ![erobinson](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/erobinson/32/2652_2.png) [@erobinson](https://forum.dimagi.com/u/erobinson)\
**Post date:** [September 10, 2019, 1:17pm UTC](https://forum.dimagi.com/t/error-on-after-reboot-script/6822/4 "2019-09-10T13:17:37Z")

</div>

Great, thanks Simon!
