Use a single source for version information.
Standardise on using the version given in setup.cfg. Change-Id: I24d44fd0e3d7a5ab90ecfd2a34c8e4bb88b50ee4
This commit is contained in:
parent
a51119762c
commit
cb1cf39109
@ -7,6 +7,7 @@ import argparse
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from cloudinit import logging
|
from cloudinit import logging
|
||||||
|
from cloudinit.version import version_string
|
||||||
|
|
||||||
|
|
||||||
def populate_parser(parser, common, subcommands):
|
def populate_parser(parser, common, subcommands):
|
||||||
@ -56,8 +57,7 @@ def main(args=sys.argv):
|
|||||||
|
|
||||||
|
|
||||||
def main_version(args):
|
def main_version(args):
|
||||||
sys.stdout.write("cloud-init 1.9\n")
|
sys.stdout.write("cloud-init {0}\n".format(version_string()))
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def unimplemented_subcommand(args):
|
def unimplemented_subcommand(args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user