-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/set attributes cmd #11961
Fix/set attributes cmd #11961
Conversation
@gabrielmougard could you please add some tests? |
Should this be property instead of attribute? We only have it explicitly documented for instances, but in the docs, we're trying to be consistent in calling everything under |
Yes, we should call it |
18a7049
to
bb455d9
Compare
Thanks! We should probably also update the other configuration how-tos, but we can do that later if needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can we have some tests added for this functionality too please.
bb455d9
to
b6d5c05
Compare
@tomponline I added two tests (for a |
b6d5c05
to
758b930
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you use the normal i18n: Update translation templates message style (without typo ;) too) when updating i18n.
758b930
to
c74b313
Compare
@ru-fu I expect that we should update the docs for this new CLI feature, do you have a preference as to where? |
@ru-fu oh wait you already did in #11961 (comment), @gabrielmougard please can you add. thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you split your Go commits by file so its possible to backport the ones that are supported by the LTS.
@gabrielmougard looks like this needs a rebase now. |
76f91ef
to
eb8255f
Compare
eb8255f
to
01c39d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed lets add a test for setting/getting the instance snapshot and storage volume snapshot expiry times.
Needs a rebase |
doc/howto/instances_configure.md
Outdated
To update instance properties after the instance is created, use the `lxc config set` command with the `--property` flag. | ||
Specify the instance name and the key and value of the instance property: | ||
|
||
lxc config set <instance_name> <option_key>=<option_value> <option_key>=<option_value> ... --property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if some of these properties are actually options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then the command will output an error saying that the <option_key>
has not been found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then the command will output an error saying that the
<option_key>
has not been found
How much effort would it be to check if the key exists as an option, and in that case report that back to the user?
We're making a difference between properties and options in the docs, but we cannot necessarily expect users to be aware of the difference. And I could imagine users getting quite confused if we're telling them that one of the keys, which they have used before, suddenly can't be found anymore.
e646bcf
to
32eb4ec
Compare
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
…rties Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
32eb4ec
to
9576afa
Compare
9576afa
to
7bce333
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look good.
static analysis failing |
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
7bce333
to
f2f8d41
Compare
closes #10960