Comment 5 for bug 1613839

Revision history for this message
Drew Freiberger (afreiberger) wrote :

This does appear to be in the juju deploy bundle.yaml code.

Steps to reproduce:

1. charm create -t reactive-python foo
2. cat > foo/config.yaml
options:
  myflt:
    type: float
    default: 1.0
^D
3. cat > foo/metadata.yaml
name: foo
summary: <Fill in summary here>
maintainer: ubuntu <email address hidden>
description: |
  <Multi-line description here>
tags:
  # Replace "misc" with one or more whitelisted tags from this list:
  # https://jujucharms.com/docs/stable/authors-charm-metadata
  - misc
subordinate: false
^D
4. charm build foo
5. cat > bundle.yaml
series: trusty
services:
  foo:
    charm: ./foo/trusty/foo
    num_units: 1
    options:
      myflt: 1.0
^D
6. juju add-model test
7. juju switch test
8. juju deploy bundle.yaml

drew@ewah:~$ juju deploy bundle.yaml
Executing changes:
- upload charm ./foo/trusty/foo for series trusty
- deploy application foo on trusty using ./foo/trusty/foo
ERROR cannot deploy bundle: cannot deploy application "foo": option "myflt" expected float, got 1

9. change bundle.yaml to myflt: 1.1 remove options: section all together, both work fine. when repeating step 8.