~axwalk/juju-core/null-provider-validate-initially-invalid

Viewing all changes in revision 2058.

  • Committer: Andrew Wilkins
  • Date: 2013-11-14 03:39:24 UTC
  • Revision ID: andrew.wilkins@canonical.com-20131114033924-mm8wvsr1j8agc14p
provider/null: Validate must allow invalid old config

The EnvironmentSet is used to push secrets from the CLI
into state; before this, the config in state is invalid.

EnvironmentSet always calls the provider's Validate
method on the new and old config before setting the
config in state. Thus, the Validate method must cater
for the old config being invalid.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: