Skip to content

Commit 3d76a02

Browse files
committed
fix: rename subject argument to device_id
1 parent e30ec2c commit 3d76a02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ pub enum IdentityConfig {
183183
/// path to wic image file (optionally compressed with xz, bzip2 or gzip)
184184
#[arg(short = 'i', long = "image")]
185185
image: PathBuf,
186-
/// subject name for the edge ca
187-
#[arg(short = 's', long = "subject")]
188-
subject: String,
186+
/// device id
187+
#[arg(short = 'd', long = "device-id")]
188+
device_id: String,
189189
/// period of validity in days
190190
#[arg(short = 'D', long = "days")]
191191
days: u32,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub fn run() -> Result<()> {
277277
intermediate_full_chain_cert,
278278
intermediate_key,
279279
image,
280-
subject,
280+
device_id,
281281
days,
282282
generate_bmap,
283283
compress_image,
@@ -289,7 +289,7 @@ pub fn run() -> Result<()> {
289289
intermediate_key: &intermediate_key,
290290
target_cert: "edge_ca_cert_path.pem",
291291
target_key: "edge_ca_path.key.pem",
292-
subject: &subject,
292+
subject: &device_id,
293293
validity_days: days,
294294
},
295295
)

tests/integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ fn check_set_edge_ca_cert() {
542542
.arg(&intermediate_full_chain_crt_key_path)
543543
.arg("-i")
544544
.arg(&image_path)
545-
.arg("-s")
545+
.arg("-d")
546546
.arg("edge-ca")
547547
.arg("-D")
548548
.arg("1")

0 commit comments

Comments
 (0)